Skip to content

Commit

Permalink
Fixed a couple of monolog deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 23, 2024
1 parent 59031a8 commit 62c60b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Errors/Errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Flex/Types/Users/UserIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 62c60b8

Please sign in to comment.