Mercurial > hg > orthanc
diff Plugins/Engine/PluginsManager.cpp @ 1983:0af087300b26
disable error log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 25 Apr 2016 14:23:34 +0200 |
parents | 325772dadcd6 |
children | dd609a99d39a |
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()); } }