Mercurial > hg > orthanc
changeset 4850:5ec96ada5a53 received-instance-callback
more logs
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 14 Dec 2021 22:51:43 +0100 |
parents | 4addabcab158 |
children | abb0e1c2b88d 70d3c7b04088 |
files | OrthancServer/Plugins/Engine/OrthancPlugins.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Mon Dec 13 16:07:52 2021 +0100 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Dec 14 22:51:43 2021 +0100 @@ -2323,6 +2323,8 @@ free(modifiedDicomBufferData); throw OrthancException(ErrorCode_Plugin, "The ReceivedInstanceCallback plugin is returning a modified buffer while it has discarded the instance"); } + + CLOG(INFO, PLUGINS) << "A plugin has discarded the instance in its ReceivedInstanceCallback"; return false; } else if (callbackResult == OrthancPluginReceivedInstanceCallbackResult_KeepAsIs) @@ -2345,6 +2347,8 @@ } modifiedDicomBufferSize = static_cast<size_t>(modifiedDicomSize64); + + CLOG(INFO, PLUGINS) << "A plugin has modified the instance in its ReceivedInstanceCallback"; return true; } else