Skip to content

Commit

Permalink
Change config name to monolog_minimum_level.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozhef committed Mar 18, 2019
1 parent dcb9ffe commit 1cec8e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Factories/RollbarHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RollbarHandlerFactory
/**
* @var string|null
*/
private $minimumLevel;
private $monologMinimumLevel;

/**
* RollbarHandlerFactory constructor.
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
}

0 comments on commit 1cec8e1

Please sign in to comment.