diff options
author | Fabian Becker <halfdan@xnorfz.de> | 2013-03-01 18:19:50 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-03-01 18:19:50 +0400 |
commit | 23e77a0f8ccfcb128f9a22ad1b9c2a6715b50505 (patch) | |
tree | 8d7121af09cde84f9ccf0625bbd62d9378c1fc53 /core/Http.php | |
parent | 44ff74c2880234d6b42086cf0be4e4fdcfae02fe (diff) |
More code cleanup and better use of Piwik::log
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Http.php b/core/Http.php index 33f5b308c8..7e921d354d 100644 --- a/core/Http.php +++ b/core/Http.php @@ -636,7 +636,7 @@ class Piwik_Http if ($expectedFileSize == 0) { - Piwik::log("HEAD request for '$url' failed, got following: ".print_r($expectedFileSizeResult, true)); + Piwik::log(sprintf("HEAD request for '%s' failed, got following: %s", $url, print_r($expectedFileSizeResult, true))); throw new Exception(Piwik_Translate('General_DownloadFail_HttpRequestFail')); } @@ -647,8 +647,7 @@ class Piwik_Http $expectedFileSize = (int)Piwik_GetOption($downloadOption); if ($expectedFileSize === false) // sanity check { - throw new Exception( - "Trying to continue a download that never started?! That's not supposed to happen..."); + throw new Exception("Trying to continue a download that never started?! That's not supposed to happen..."); } } |