comparison 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
comparison
equal deleted inserted replaced
1982:b5d4f9c156ad 1983:0af087300b26
189 } 189 }
190 } 190 }
191 catch (OrthancException& e) 191 catch (OrthancException& e)
192 { 192 {
193 // This service provider has failed 193 // This service provider has failed
194 LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); 194 if (e.GetErrorCode() != ErrorCode_UnknownResource) // This error code is valid in plugins
195 {
196 LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What();
197 }
198
195 return static_cast<OrthancPluginErrorCode>(e.GetErrorCode()); 199 return static_cast<OrthancPluginErrorCode>(e.GetErrorCode());
196 } 200 }
197 } 201 }
198 202
199 LOG(ERROR) << "Plugin invoking unknown service: " << service; 203 LOG(ERROR) << "Plugin invoking unknown service: " << service;