avoid printing too much to the log
This commit is contained in:
parent
057ccada5e
commit
2af5f1d00b
2
main.cpp
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user