diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 9bb4da962465bb5a8a5563390cef547f1d1a1fe1..9696c16dbe9569f1483de26f725eddf2805385df 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; }