comparison 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
comparison
equal deleted inserted replaced
5099:edefb278cb77 5100:9d51c000e91a
181 catch (OrthancException& e) 181 catch (OrthancException& e)
182 { 182 {
183 // This service provider has failed 183 // This service provider has failed
184 if (e.GetErrorCode() != ErrorCode_UnknownResource) // This error code is valid in plugins 184 if (e.GetErrorCode() != ErrorCode_UnknownResource) // This error code is valid in plugins
185 { 185 {
186 LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What(); 186 if (!e.HasBeenLogged())
187 {
188 LOG(ERROR) << "Exception while invoking plugin service " << service << ": " << e.What();
189 }
187 } 190 }
188 191
189 return static_cast<OrthancPluginErrorCode>(e.GetErrorCode()); 192 return static_cast<OrthancPluginErrorCode>(e.GetErrorCode());
190 } 193 }
191 } 194 }