monolog2 support

This commit is contained in:
Andy Miller 2024-10-26 15:25:00 +01:00
parent 3d2dfa2faf
commit 1969ec1876
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ class Plugins extends Iterator
// Log a warning if plugin cannot be found.
if (null === $class) {
$grav['log']->addWarning(
$grav['log']->warning(
sprintf("Plugin '%s' enabled but not found! Try clearing cache with `bin/grav clearcache`", $name)
);
}

View File

@ -881,7 +881,7 @@ class FlexIndex extends ObjectIndex implements FlexIndexInterface
/** @var Logger $logger */
$logger = $grav['log'];
$logger->addAlert($e->getMessage());
$logger->alert($e->getMessage());
/** @var Debugger $debugger */
$debugger = $grav['debugger'];