Mercurial > hg > orthanc
changeset 5021:559b35d18ef7
Improved HttpClient error logging (add method + url)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 15 Jun 2022 15:40:07 +0200 |
parents | 4be5a8b0af1d |
children | 3d0a084e1ace c2ebc47f4f18 afa427f65444 |
files | NEWS OrthancFramework/Sources/HttpClient.cpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Jun 14 17:19:53 2022 +0200 +++ b/NEWS Wed Jun 15 15:40:07 2022 +0200 @@ -15,6 +15,7 @@ * Housekeeper plugin: Fix resume of previous processing * Added missing MOVEPatientRootQueryRetrieveInformationModel in DicomControlUserConnection::SetupPresentationContexts() +* Improved HttpClient error logging (add method + url) Version 1.11.0 (2022-05-09) ===========================
--- a/OrthancFramework/Sources/HttpClient.cpp Tue Jun 14 17:19:53 2022 +0200 +++ b/OrthancFramework/Sources/HttpClient.cpp Wed Jun 15 15:40:07 2022 +0200 @@ -1082,7 +1082,8 @@ else { LOG(ERROR) << "Error in HTTP request, received HTTP status " << status - << " (" << EnumerationToString(lastStatus_) << ")"; + << " (" << EnumerationToString(lastStatus_) << ") after " + << EnumerationToString(method_) << " request on: " << url_; return false; } }