Mercurial > hg > orthanc
diff OrthancServer/Plugins/Engine/PluginsManager.cpp @ 5100:9d51c000e91a
more verbose HTTPClient errors + avoid duplicate logging of same error
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 19 Oct 2022 12:40:14 +0200 |
parents | 6eff25f70121 |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/PluginsManager.cpp Wed Oct 19 08:57:34 2022 +0200 +++ b/OrthancServer/Plugins/Engine/PluginsManager.cpp Wed Oct 19 12:40:14 2022 +0200 @@ -183,7 +183,10 @@ // This service provider has failed if (e.GetErrorCode() != ErrorCode_UnknownResource) // This error code is valid in plugins { - LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); + if (!e.HasBeenLogged()) + { + LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); + } } return static_cast<OrthancPluginErrorCode>(e.GetErrorCode());