Skip to content

Commit

Permalink
Change name to monologMinimumLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozhef committed Mar 22, 2019
2 parents 6aed6c7 + 1cec8e1 commit 37be9b5
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 = isset($config['minimum_level']) ? $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 37be9b5

Please sign in to comment.