Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/DicomModification.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 | 7112a8af0b63 |
children | 0034f855c023 |
comparison
equal
deleted
inserted
replaced
4267:a20928107a90 | 4268:0ae2ca210077 |
---|---|
1164 | 1164 |
1165 switch (operation) | 1165 switch (operation) |
1166 { | 1166 { |
1167 case DicomModification::TagOperation_Keep: | 1167 case DicomModification::TagOperation_Keep: |
1168 target.Keep(tag); | 1168 target.Keep(tag); |
1169 VLOG(1) << "Keep: " << name << " " << tag; | 1169 LOG(TRACE) << "Keep: " << name << " " << tag; |
1170 break; | 1170 break; |
1171 | 1171 |
1172 case DicomModification::TagOperation_Remove: | 1172 case DicomModification::TagOperation_Remove: |
1173 target.Remove(tag); | 1173 target.Remove(tag); |
1174 VLOG(1) << "Remove: " << name << " " << tag; | 1174 LOG(TRACE) << "Remove: " << name << " " << tag; |
1175 break; | 1175 break; |
1176 | 1176 |
1177 default: | 1177 default: |
1178 throw OrthancException(ErrorCode_InternalError); | 1178 throw OrthancException(ErrorCode_InternalError); |
1179 } | 1179 } |
1205 "requires the \"Force\" option to be set to true"); | 1205 "requires the \"Force\" option to be set to true"); |
1206 } | 1206 } |
1207 | 1207 |
1208 target.Replace(tag, value, false); | 1208 target.Replace(tag, value, false); |
1209 | 1209 |
1210 VLOG(1) << "Replace: " << name << " " << tag | 1210 LOG(TRACE) << "Replace: " << name << " " << tag |
1211 << " == " << value.toStyledString(); | 1211 << " == " << value.toStyledString(); |
1212 } | 1212 } |
1213 } | 1213 } |
1214 | 1214 |
1215 | 1215 |
1216 static bool GetBooleanValue(const std::string& member, | 1216 static bool GetBooleanValue(const std::string& member, |