summaryrefslogtreecommitdiff
path: root/classes/urlhelper.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-24 08:19:04 +0300
committerAndrew Dolgov <[email protected]>2021-11-24 08:19:04 +0300
commit204f92b926a6c3a783af24bde7a0ff874f84c01d (patch)
treed5f3b5e0080ded5d867f929f617d6c3e0ef09fa3 /classes/urlhelper.php
parenta109e8998388cb7af8d6fb38302ef0ce3ac712af (diff)
urlhelper: add debugging output for download attempts
Diffstat (limited to 'classes/urlhelper.php')
-rw-r--r--classes/urlhelper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php
index 9bb4da962..9696c16db 100644
--- a/classes/urlhelper.php
+++ b/classes/urlhelper.php
@@ -286,6 +286,8 @@ class UrlHelper {
$url = ltrim($url, ' ');
$url = str_replace(' ', '%20', $url);
+ Debug::log("[UrlHelper] fetching: $url", Debug::LOG_EXTENDED);
+
$url = self::validate($url, true);
if (!$url) {
@@ -345,7 +347,7 @@ class UrlHelper {
//Debug::log("[curl progressfunction] $downloaded $max_size", Debug::$LOG_EXTENDED);
if ($downloaded > $max_size) {
- Debug::log("curl: reached max size of $max_size bytes requesting $url, aborting.", Debug::LOG_VERBOSE);
+ Debug::log("[UrlHelper] fetch error: curl reached max size of $max_size bytes downloading $url, aborting.", Debug::LOG_VERBOSE);
return 1;
}