Mercurial > hg > orthanc
changeset 1983:0af087300b26
disable error log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 25 Apr 2016 14:23:34 +0200 |
parents | b5d4f9c156ad |
children | 9f09a20e41e2 |
files | Plugins/Engine/PluginsManager.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsManager.cpp Fri Apr 22 10:28:55 2016 +0200 +++ b/Plugins/Engine/PluginsManager.cpp Mon Apr 25 14:23:34 2016 +0200 @@ -191,7 +191,11 @@ catch (OrthancException& e) { // This service provider has failed - LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); + if (e.GetErrorCode() != ErrorCode_UnknownResource) // This error code is valid in plugins + { + LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); + } + return static_cast<OrthancPluginErrorCode>(e.GetErrorCode()); } }