From 62c60b8ba12140288f22f03e25551df77bd633c3 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 23 Oct 2024 17:17:51 +0100 Subject: [PATCH] Fixed a couple of monolog deprecations --- system/src/Grav/Common/Errors/Errors.php | 2 +- system/src/Grav/Common/Flex/Types/Users/UserIndex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Errors/Errors.php b/system/src/Grav/Common/Errors/Errors.php index eec79f48e5..ac56fa6300 100644 --- a/system/src/Grav/Common/Errors/Errors.php +++ b/system/src/Grav/Common/Errors/Errors.php @@ -70,7 +70,7 @@ public function resetHandlers() $logger = $grav['log']; $whoops->pushHandler(function ($exception, $inspector, $run) use ($logger) { try { - $logger->addCritical($exception->getMessage() . ' - Trace: ' . $exception->getTraceAsString()); + $logger->critical($exception->getMessage() . ' - Trace: ' . $exception->getTraceAsString()); } catch (Exception $e) { echo $e; } diff --git a/system/src/Grav/Common/Flex/Types/Users/UserIndex.php b/system/src/Grav/Common/Flex/Types/Users/UserIndex.php index d6781af05c..74524106d2 100644 --- a/system/src/Grav/Common/Flex/Types/Users/UserIndex.php +++ b/system/src/Grav/Common/Flex/Types/Users/UserIndex.php @@ -197,7 +197,7 @@ protected static function onChanges(array $entries, array $added, array $updated /** @var Logger $logger */ $logger = $grav['log']; - $logger->addDebug($message); + $logger->debug($message); /** @var Debugger $debugger */ $debugger = $grav['debugger'];