Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-07 00:47:11 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-07 00:47:22 +0400
commit6c11ad21c86a3bac8111d5a4c08bc635984d2129 (patch)
treeff7d27edc8483e65ee0a39f0247e011e1855f843 /core/Profiler.php
parent57501bfc33ed680cdde8c9177e8dc0ea42005011 (diff)
Removed Piwik::log and replace with calls to Log::... functions. Also changed logging level on travis.
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index b79bc068ce..4ad407f3ee 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -10,6 +10,8 @@
*/
namespace Piwik;
+use Piwik\Log;
+
/**
* Class Profiler helps with measuring memory, and profiling the database.
* To enable set in your config.ini.php
@@ -86,7 +88,7 @@ class Profiler
$str .= '(Average query length: ' . round($totalTime / $queryCount, 3) . ' seconds)';
$str .= '<br />Queries per second: ' . round($queryCount / $totalTime, 1);
$str .= '<br />Longest query length: ' . round($longestTime, 3) . " seconds (<code>$longestQuery</code>)";
- Piwik::log($str);
+ Log::debug($str);
self::getSqlProfilingQueryBreakdownOutput($infoIndexedByQuery);
}
@@ -135,7 +137,7 @@ class Profiler
{
$totalTime = self::getDbElapsedSecs();
$queryCount = Profiler::getQueryCount();
- Piwik::log(sprintf("Total queries = %d (total sql time = %.2fs)", $queryCount, $totalTime));
+ Log::debug(sprintf("Total queries = %d (total sql time = %.2fs)", $queryCount, $totalTime));
}
/**
@@ -179,6 +181,6 @@ class Profiler
$query = preg_replace('/([\t\n\r ]+)/', ' ', $query);
$output .= "Executed <b>$count</b> time" . ($count == 1 ? '' : 's') . " in <b>" . $timeMs . "ms</b> $avgTimeString <pre>\t$query</pre>";
}
- Piwik::log($output);
+ Log::debug($output);
}
} \ No newline at end of file