Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/ResourceModificationJob.cpp @ 3430:4c45e018bd3d
improved logging
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 17 Jun 2019 23:35:46 +0200 |
parents | beeeb6096f27 |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/ResourceModificationJob.cpp Wed Jun 12 18:04:53 2019 +0200 +++ b/OrthancServer/ServerJobs/ResourceModificationJob.cpp Mon Jun 17 23:35:46 2019 +0200 @@ -158,9 +158,9 @@ originalHasher.reset(new DicomInstanceHasher(original.GetHasher())); modified.reset(original.Clone(true)); } - catch (OrthancException&) + catch (OrthancException& e) { - LOG(WARNING) << "An instance was removed after the job was issued: " << instance; + LOG(WARNING) << "An error occurred while executing a Modification job on instance " << instance << ": " << e.GetDetails(); return false; }