Mercurial > hg > orthanc-webviewer
diff Plugin/DecodedImageAdapter.cpp @ 234:083d0cbcbac4 transcoding
improved error message
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 May 2020 16:02:34 +0200 |
parents | cce89307af28 |
children | 4e9d30c19b4b |
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp Mon May 11 15:38:39 2020 +0200 +++ b/Plugin/DecodedImageAdapter.cpp Mon May 11 16:02:34 2020 +0200 @@ -125,8 +125,7 @@ bool DecodedImageAdapter::Create(std::string& content, const std::string& uri) { - std::string message = "Decoding DICOM instance: " + uri; - OrthancPluginLogInfo(context_, message.c_str()); + LOG(INFO) << "Decoding DICOM instance: " << uri; CompressionType type; uint8_t level; @@ -138,7 +137,6 @@ return false; } - bool ok = false; Json::Value tags; @@ -180,9 +178,7 @@ } else { - char msg[1024]; - sprintf(msg, "Unable to decode the following instance: %s", uri.c_str()); - OrthancPluginLogWarning(context_, msg); + LOG(WARNING) << "Unable to decode the following instance: " << uri; return false; } }