From 5d9f75d8e1fa3ec0962920ee44f92d72bbe4dbcb Mon Sep 17 00:00:00 2001 From: Alexander Mahrt Date: Thu, 26 Jan 2023 09:17:55 +0100 Subject: [PATCH 1/2] bugfix-json-console-logger: Fixed method signature --- Classes/Backend/JSONConsoleLogger.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Backend/JSONConsoleLogger.php b/Classes/Backend/JSONConsoleLogger.php index 9861f5b..12a6f5e 100644 --- a/Classes/Backend/JSONConsoleLogger.php +++ b/Classes/Backend/JSONConsoleLogger.php @@ -35,8 +35,9 @@ public function open(): void /** * @param mixed $additionalData A variable containing more information about the event to be logged */ - public function append(string $message, string $packageKey, string $className, string $methodName, int $severity = LOG_INFO, $additionalData = null): void + public function append(string $message, int $severity = LOG_INFO, $additionalData = null, ?string $packageKey = null, ?string $className = null, ?string $methodName = null): void { + if ($severity > $this->severityThreshold) { return; } From 78db59225a95d8ba1c0495c332f80cc74e904388 Mon Sep 17 00:00:00 2001 From: Alexander Mahrt Date: Thu, 26 Jan 2023 09:20:20 +0100 Subject: [PATCH 2/2] bugfix-json-console-logger: Fixed linting --- Classes/Backend/JSONConsoleLogger.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Backend/JSONConsoleLogger.php b/Classes/Backend/JSONConsoleLogger.php index 12a6f5e..f7a568b 100644 --- a/Classes/Backend/JSONConsoleLogger.php +++ b/Classes/Backend/JSONConsoleLogger.php @@ -37,7 +37,6 @@ public function open(): void */ public function append(string $message, int $severity = LOG_INFO, $additionalData = null, ?string $packageKey = null, ?string $className = null, ?string $methodName = null): void { - if ($severity > $this->severityThreshold) { return; }