From d1dbb8ea30c6d807a8280e858de12f3a2c9b5dcb Mon Sep 17 00:00:00 2001 From: Aleksandr Osadchiy <9470871+aleksandrosadchiy@users.noreply.github.com> Date: Wed, 20 Apr 2022 03:43:08 +0300 Subject: [PATCH] Update Logger --- src/Model/Logger.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Model/Logger.php b/src/Model/Logger.php index c9689df..6f03029 100755 --- a/src/Model/Logger.php +++ b/src/Model/Logger.php @@ -81,13 +81,13 @@ public function __construct( * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function debug($message, array $context = []) + public function debug($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_NOTICE); + $this->logMessage($message, $context, self::SEVERITY_NOTICE); } /** @@ -99,13 +99,13 @@ public function debug($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function info($message, array $context = []) + public function info($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_MINOR); + $this->logMessage($message, $context, self::SEVERITY_MINOR); } /** @@ -117,13 +117,13 @@ public function info($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function warning($message, array $context = []) + public function warning($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_MAJOR); + $this->logMessage($message, $context, self::SEVERITY_MAJOR); } /** @@ -135,12 +135,12 @@ public function warning($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function critical($message, array $context = []) + public function critical($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_CRITICAL); + $this->logMessage($message, $context, self::SEVERITY_CRITICAL); }