# HG changeset patch # User Sebastien Jodogne # Date 1461587014 -7200 # Node ID 0af087300b260051ce3c0fa4c68834b8f62250d2 # Parent b5d4f9c156ad1575e7f8f110f3078b456b7cba7d disable error log diff -r b5d4f9c156ad -r 0af087300b26 Plugins/Engine/PluginsManager.cpp --- 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(e.GetErrorCode()); } }