avoid printing too much to the log

This commit is contained in:
Slavasil 2025-01-10 13:20:58 +00:00
parent 057ccada5e
commit 2af5f1d00b

View File

@ -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);