diff --git a/main.cpp b/main.cpp index 8ae12d0..8d2f475 100644 --- a/main.cpp +++ b/main.cpp @@ -334,7 +334,7 @@ void check_curl_multi_info(context *ctx) { } size_t curl_receive_cb(char *ptr, size_t size, size_t nmemb, CURL *curl) { - spdlog::debug("received {} bytes from server: '{}'", nmemb, std::string(ptr, nmemb)); + spdlog::debug("received {} bytes from: '{}'", nmemb, nmemb <= 50 ? std::string(ptr, nmemb) : std::string(ptr, 47)+"..."); context *ctx = nullptr; curl_easy_getinfo(curl, CURLINFO_PRIVATE, &ctx);