From d628093107b4e83f57a603a44426ed6b5dd0a155 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Thu, 30 Sep 2021 14:31:17 +0200 Subject: [PATCH] add url to curl error log Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c27672b57321ec249db23a21d9974041a40a25a4 Author: TangoCash Date: 2021-09-30 (Thu, 30 Sep 2021) --- src/system/helpers.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index f85370d8c..7b5323987 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -1938,7 +1938,8 @@ bool getUrl(std::string& url, std::string& answer, std::string userAgent, unsign if (httpres != 0 || answer.empty()) { - dprintf(DEBUG_NORMAL, "getUrl: error: %s\n", cerror); + dprintf(DEBUG_NORMAL, "getUrl: error msg: %s\n", cerror); + dprintf(DEBUG_NORMAL, "getUrl: error url: %s\n", url.c_str()); return false; } @@ -1986,7 +1987,8 @@ bool downloadUrl(std::string url, std::string file, std::string userAgent, unsig if (httpres != 0) { - dprintf(DEBUG_NORMAL, "curl error: %s\n", cerror); + dprintf(DEBUG_NORMAL, "curl error msg: %s\n", cerror); + dprintf(DEBUG_NORMAL, "curl error url: %s\n", url.c_str()); unlink(file.c_str()); return false; }