# HG changeset patch # User Sebastien Jodogne # Date 1568200927 -7200 # Node ID e481c2b3291419cc64724cafc4aa410f96f71bb2 # Parent 96780208dbd7bead3b075ca8d88c18fd8757a7a5# Parent 13f9ccf05a8e25803563e50796642682ca06e434 merge diff -r 13f9ccf05a8e -r e481c2b32914 Core/HttpClient.cpp --- a/Core/HttpClient.cpp Thu Sep 05 18:09:21 2019 +0200 +++ b/Core/HttpClient.cpp Wed Sep 11 13:22:07 2019 +0200 @@ -933,6 +933,8 @@ CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_WRITEDATA, &answer)); + const boost::posix_time::ptime start = boost::posix_time::microsec_clock::universal_time(); + if (boost::starts_with(url_, "https://")) { code = OrthancHttpClientPerformSSL(pimpl_->curl_, &status); @@ -942,7 +944,10 @@ code = GetHttpStatus(curl_easy_perform(pimpl_->curl_), pimpl_->curl_, &status); } - LOG(INFO) << "HTTP status code " << status << " after " + const boost::posix_time::ptime end = boost::posix_time::microsec_clock::universal_time(); + + LOG(INFO) << "HTTP status code " << status << " in " + << ((end - start).total_milliseconds()) << " ms after " << EnumerationToString(method_) << " request on: " << url_; if (isVerbose_)