comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.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 05b8fd21089c
children c7bd2f21ccc3
comparison
equal deleted inserted replaced
4267:a20928107a90 4268:0ae2ca210077
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 VLOG(1) << "There exists a remaining ancestor with public ID \"" 158 TLOG(SQLITE) << "There exists a remaining ancestor with public ID \""
159 << context.GetStringValue(0) 159 << context.GetStringValue(0) << "\" of type "
160 << "\" of type " 160 << context.GetIntValue(1);
161 << context.GetIntValue(1);
162 161
163 if (!hasRemainingAncestor_ || 162 if (!hasRemainingAncestor_ ||
164 remainingType_ >= context.GetIntValue(1)) 163 remainingType_ >= context.GetIntValue(1))
165 { 164 {
166 hasRemainingAncestor_ = true; 165 hasRemainingAncestor_ = true;