From 2af5f1d00b37cbae12fe3f8c71a4863094012c69 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Fri, 10 Jan 2025 13:20:58 +0000 Subject: [PATCH] avoid printing too much to the log --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);