summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HttpRequest.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-10-26 19:01:26 +0100
committerGitHub <noreply@github.com>2020-10-26 19:01:26 +0100
commit07e6d008bd6c34b8af07247935bc8aa6abc596df (patch)
treee5084fc3c855e85bcff41046533ec765135e3656 /Source/Core/Common/HttpRequest.cpp
parent7f66de062c3c0b7d0f1e49682f8663dc978e76fc (diff)
parent4e8df93f4179a684b507d9c712b7e8121fc83119 (diff)
Merge pull request #9187 from lioncash/commonlog
Common: Migrate logging to fmt
Diffstat (limited to 'Source/Core/Common/HttpRequest.cpp')
-rw-r--r--Source/Core/Common/HttpRequest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/HttpRequest.cpp b/Source/Core/Common/HttpRequest.cpp
index 34ab47a095..1cbf2aebc4 100644
--- a/Source/Core/Common/HttpRequest.cpp
+++ b/Source/Core/Common/HttpRequest.cpp
@@ -210,7 +210,7 @@ HttpRequest::Response HttpRequest::Impl::Fetch(const std::string& url, Method me
const CURLcode res = curl_easy_perform(m_curl.get());
if (res != CURLE_OK)
{
- ERROR_LOG(COMMON, "Failed to %s %s: %s", type, url.c_str(), m_error_string.c_str());
+ ERROR_LOG_FMT(COMMON, "Failed to {} {}: {}", type, url, m_error_string);
return {};
}
@@ -221,8 +221,8 @@ HttpRequest::Response HttpRequest::Impl::Fetch(const std::string& url, Method me
curl_easy_getinfo(m_curl.get(), CURLINFO_RESPONSE_CODE, &response_code);
if (response_code != 200)
{
- ERROR_LOG(COMMON, "Failed to %s %s: server replied with code %li and body\n\x1b[0m%.*s", type,
- url.c_str(), response_code, static_cast<int>(buffer.size()), buffer.data());
+ ERROR_LOG_FMT(COMMON, "Failed to {} {}: server replied with code {} and body\n\x1b[0m{:.{}}",
+ type, url, response_code, buffer.data(), static_cast<int>(buffer.size()));
return {};
}