diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-05 01:01:47 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-05 01:01:47 +0300 |
commit | 28a07a8d13a05f923b3d231283261e484078de72 (patch) | |
tree | d390d11988875829b808a69a9095637a63b53716 /core/Log.php | |
parent | a26cf222ff29851440d71cc63df7b3f8650100d3 (diff) |
#6622 Logger refactoring: removed manual overriding of the log level in CLI since it's now dependent of the verbosity level
`Piwik\Log::setLogLevel` is now deprecated and doesn't do anything. Its usages have been removed.
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/Log.php b/core/Log.php index 33e09d88ec..846949e0f3 100644 --- a/core/Log.php +++ b/core/Log.php @@ -244,19 +244,10 @@ class Log extends Singleton /** * @param int $logLevel - * @deprecated We should remove the log level from this class entirely + * @deprecated Will be removed */ public function setLogLevel($logLevel) { - $this->currentLogLevel = $logLevel; - - // Apply the log level to all handlers - $logLevel = self::getMonologLevel($logLevel); - foreach ($this->handlers as $handler) { - if ($handler instanceof AbstractHandler) { - $handler->setLevel($logLevel); - } - } } public function getLogLevel() |