diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-10-07 00:47:11 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-10-07 00:47:22 +0400 |
commit | 6c11ad21c86a3bac8111d5a4c08bc635984d2129 (patch) | |
tree | ff7d27edc8483e65ee0a39f0247e011e1855f843 /core/Archive.php | |
parent | 57501bfc33ed680cdde8c9177e8dc0ea42005011 (diff) |
Removed Piwik::log and replace with calls to Log::... functions. Also changed logging level on travis.
Diffstat (limited to 'core/Archive.php')
-rw-r--r-- | core/Archive.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/core/Archive.php b/core/Archive.php index d4fa564dda..fad9666809 100644 --- a/core/Archive.php +++ b/core/Archive.php @@ -14,6 +14,7 @@ use Piwik\Period\Range; use Piwik\Piwik; use Piwik\Metrics; use Piwik\Date; +use Piwik\Log; use Piwik\ArchiveProcessor\Rules; use Piwik\DataAccess\ArchiveSelector; @@ -456,15 +457,15 @@ class Archive // we already know there are no stats for this period // we add one day to make sure we don't miss the day of the website creation if ($twoDaysAfterPeriod->isEarlier($site->getCreationDate())) { - $archiveDesc = $this->getArchiveDescriptor($idSite, $period); - Piwik::log("Archive $archiveDesc skipped, archive is before the website was created."); + Log::verbose("Archive site %s, %s (%s) skipped, archive is before the website was created.", + $idSite, $period->getLabel(), $period->getPrettyString()); continue; } // if the starting date is in the future we know there is no visiidsite = ?t if ($twoDaysBeforePeriod->isLater($today)) { - $archiveDesc = $this->getArchiveDescriptor($idSite, $period); - Piwik::log("Archive $archiveDesc skipped, archive is after today."); + Log::verbose("Archive site %s, %s (%s) skipped, archive is after today.", + $idSite, $period->getLabel(), $period->getPrettyString()); continue; } @@ -578,11 +579,6 @@ class Archive return round((float)$value, 2); } - private function getArchiveDescriptor($idSite, $period) - { - return "site $idSite, {$period->getLabel()} ({$period->getPrettyString()})"; - } - private function uncompress($data) { return @gzuncompress($data); |