Mercurial > hg > orthanc
changeset 3517:e481c2b32914
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Sep 2019 13:22:07 +0200 |
parents | 96780208dbd7 (diff) 13f9ccf05a8e (current diff) |
children | a57c8163d9ae |
files | |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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_)