# HG changeset patch # User Sebastien Jodogne # Date 1500021453 -7200 # Node ID 65ffba10cace7cb34377588b6cfbe26aa700522e # Parent 8bca2c8eaead6cd8c8fc50ec74ca926f676fe5ee warning message in DicomModification::Keep() diff -r 8bca2c8eaead -r 65ffba10cace OrthancServer/DicomModification.cpp --- a/OrthancServer/DicomModification.cpp Wed Jul 12 22:39:28 2017 +0200 +++ b/OrthancServer/DicomModification.cpp Fri Jul 14 10:37:33 2017 +0200 @@ -170,20 +170,22 @@ clearings_.erase(tag); RemoveInternal(tag); - if (tag.IsPrivate()) - { - privateTagsToKeep_.insert(tag); - } - if (tag == DICOM_TAG_STUDY_INSTANCE_UID) { keepStudyInstanceUid_ = true; } - - if (tag == DICOM_TAG_SERIES_INSTANCE_UID) + else if (tag == DICOM_TAG_SERIES_INSTANCE_UID) { keepSeriesInstanceUid_ = true; } + else if (tag.IsPrivate()) + { + privateTagsToKeep_.insert(tag); + } + else + { + LOG(WARNING) << "Marking this tag as to be kept has no effect: " << tag.Format(); + } MarkNotOrthancAnonymization(); }