diff OrthancFramework/Sources/SQLite/Statement.cpp @ 4269:c7bd2f21ccc3

new macro CLOG, and sharing more code between logging engines
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Nov 2020 17:15:57 +0100
parents 0ae2ca210077
children 50b0c69b653a
line wrap: on
line diff
--- a/OrthancFramework/Sources/SQLite/Statement.cpp	Mon Nov 02 14:48:15 2020 +0100
+++ b/OrthancFramework/Sources/SQLite/Statement.cpp	Mon Nov 02 17:15:57 2020 +0100
@@ -59,8 +59,8 @@
 #else
 // Trace logging is enabled in debug builds
 #  include "../Logging.h"
-#  define LOG_CREATE(message)  TLOG(SQLITE) << "SQLite::Statement create: " << message;
-#  define LOG_APPLY(message);  // TLOG(SQLITE) << "SQLite::Statement apply: " << message;
+#  define LOG_CREATE(message)  CLOG(TRACE, SQLITE) << "SQLite::Statement create: " << message;
+#  define LOG_APPLY(message);  // CLOG(TRACE, SQLITE) << "SQLite::Statement apply: " << message;
 #endif
 
 #include "sqlite3.h"
@@ -168,7 +168,7 @@
       // spurious error callback.
       if (clear_bound_vars)
         sqlite3_clear_bindings(GetStatement());
-      //TLOG(SQLITE) << "SQLite::Statement::Reset";
+      //CLOG(TRACE, SQLITE) << "SQLite::Statement::Reset";
       sqlite3_reset(GetStatement());
     }