diff --git a/system/src/Grav/Common/Plugins.php b/system/src/Grav/Common/Plugins.php index 2ab105010..af54ec8a1 100644 --- a/system/src/Grav/Common/Plugins.php +++ b/system/src/Grav/Common/Plugins.php @@ -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) ); } diff --git a/system/src/Grav/Framework/Flex/FlexIndex.php b/system/src/Grav/Framework/Flex/FlexIndex.php index a7b05e7f0..4f73a3e35 100644 --- a/system/src/Grav/Framework/Flex/FlexIndex.php +++ b/system/src/Grav/Framework/Flex/FlexIndex.php @@ -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'];