comparison 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
comparison
equal deleted inserted replaced
4268:0ae2ca210077 4269:c7bd2f21ccc3
153 return 2; 153 return 2;
154 } 154 }
155 155
156 virtual void Compute(SQLite::FunctionContext& context) 156 virtual void Compute(SQLite::FunctionContext& context)
157 { 157 {
158 TLOG(SQLITE) << "There exists a remaining ancestor with public ID \"" 158 CLOG(TRACE, SQLITE) << "There exists a remaining ancestor with public ID \""
159 << context.GetStringValue(0) << "\" of type " 159 << context.GetStringValue(0) << "\" of type "
160 << context.GetIntValue(1); 160 << context.GetIntValue(1);
161 161
162 if (!hasRemainingAncestor_ || 162 if (!hasRemainingAncestor_ ||
163 remainingType_ >= context.GetIntValue(1)) 163 remainingType_ >= context.GetIntValue(1))
164 { 164 {
165 hasRemainingAncestor_ = true; 165 hasRemainingAncestor_ = true;