From 1cec8e1b536066e70e94b87e8da1533eaaa71166 Mon Sep 17 00:00:00 2001 From: Jozhef Date: Mon, 18 Mar 2019 09:18:13 +0200 Subject: [PATCH] Change config name to monolog_minimum_level. --- Factories/RollbarHandlerFactory.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Factories/RollbarHandlerFactory.php b/Factories/RollbarHandlerFactory.php index c030bd1..621c833 100755 --- a/Factories/RollbarHandlerFactory.php +++ b/Factories/RollbarHandlerFactory.php @@ -18,7 +18,7 @@ class RollbarHandlerFactory /** * @var string|null */ - private $minimumLevel; + private $monologMinimumLevel; /** * RollbarHandlerFactory constructor. @@ -53,7 +53,9 @@ public function __construct(ContainerInterface $container) }; } - $this->minimumLevel = $config['minimum_level'] ?: LogLevel::ERROR; + $this->monologMinimumLevel = isset($config['monolog_minimum_level']) + ? $config['monolog_minimum_level'] + : LogLevel::ERROR; Rollbar::init($config, false, false, false); } @@ -65,6 +67,6 @@ public function __construct(ContainerInterface $container) */ public function createRollbarHandler() { - return new RollbarHandler(Rollbar::logger(), $this->minimumLevel); + return new RollbarHandler(Rollbar::logger(), $this->monologMinimumLevel); } }