mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
add url to curl error log
Origin commit data
------------------
Branch: ni/coolstream
Commit: c27672b573
Author: TangoCash <eric@loxat.de>
Date: 2021-09-30 (Thu, 30 Sep 2021)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1938,7 +1938,8 @@ bool getUrl(std::string& url, std::string& answer, std::string userAgent, unsign
|
|||||||
|
|
||||||
if (httpres != 0 || answer.empty())
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1986,7 +1987,8 @@ bool downloadUrl(std::string url, std::string file, std::string userAgent, unsig
|
|||||||
|
|
||||||
if (httpres != 0)
|
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());
|
unlink(file.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user