diff OrthancServer/Sources/Database/SQLiteDatabaseWrapper.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 d9473bd5ed43
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Mon Nov 02 14:48:15 2020 +0100
+++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Mon Nov 02 17:15:57 2020 +0100
@@ -155,9 +155,9 @@
 
       virtual void Compute(SQLite::FunctionContext& context)
       {
-        TLOG(SQLITE) << "There exists a remaining ancestor with public ID \""
-                     << context.GetStringValue(0) << "\" of type "
-                     << context.GetIntValue(1);
+        CLOG(TRACE, SQLITE) << "There exists a remaining ancestor with public ID \""
+                            << context.GetStringValue(0) << "\" of type "
+                            << context.GetIntValue(1);
 
         if (!hasRemainingAncestor_ ||
             remainingType_ >= context.GetIntValue(1))