changeset 457:2f3b0688548e pg-transactions

show transaction mode in logs
author Alain Mazy <am@osimis.io>
date Tue, 23 Jan 2024 17:00:35 +0100
parents 0ac99983abfa
children 9da7c688e7dc
files Framework/PostgreSQL/PostgreSQLParameters.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLParameters.cpp	Tue Jan 23 16:50:55 2024 +0100
+++ b/Framework/PostgreSQL/PostgreSQLParameters.cpp	Tue Jan 23 17:00:35 2024 +0100
@@ -103,14 +103,17 @@
     std::string transactionMode = configuration.GetStringValue("TransactionMode", "SERIALIZABLE");
     if (transactionMode == "DEFAULT")
     {
+      LOG(WARNING) << "PostgreSQL: using DB default transaction mode";
       SetIsolationMode(IsolationMode_DbDefault);
     }
     else if (transactionMode == "READ COMMITTED")
     {
+      LOG(WARNING) << "PostgreSQL: using READ COMMITTED transaction mode";
       SetIsolationMode(IsolationMode_ReadCommited);
     }
     else if (transactionMode == "SERIALIZABLE")
     {
+      LOG(WARNING) << "PostgreSQL: using SERIALIZABLE transaction mode";
       SetIsolationMode(IsolationMode_Serializable);
     }
     else