Mercurial > hg > orthanc
diff OrthancFramework/Sources/SQLite/Statement.cpp @ 4268:0ae2ca210077
new macro TLOG() to replace VLOG() for trace logs with a category
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Nov 2020 14:48:15 +0100 |
parents | d25f4c0fa160 |
children | c7bd2f21ccc3 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/SQLite/Statement.cpp Sun Nov 01 12:43:18 2020 +0100 +++ b/OrthancFramework/Sources/SQLite/Statement.cpp Mon Nov 02 14:48:15 2020 +0100 @@ -59,8 +59,8 @@ #else // Trace logging is enabled in debug builds # include "../Logging.h" -# define LOG_CREATE(message) VLOG(1) << "SQLite::Statement create: " << message; -# define LOG_APPLY(message); // VLOG(1) << "SQLite::Statement apply: " << message; +# define LOG_CREATE(message) TLOG(SQLITE) << "SQLite::Statement create: " << message; +# define LOG_APPLY(message); // TLOG(SQLITE) << "SQLite::Statement apply: " << message; #endif #include "sqlite3.h" @@ -168,7 +168,7 @@ // spurious error callback. if (clear_bound_vars) sqlite3_clear_bindings(GetStatement()); - //VLOG(1) << "SQLite::Statement::Reset"; + //TLOG(SQLITE) << "SQLite::Statement::Reset"; sqlite3_reset(GetStatement()); }