Skip to content

Commit 1cec8e1

Browse files
author
Jozhef
committed
Change config name to monolog_minimum_level.
1 parent dcb9ffe commit 1cec8e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: Factories/RollbarHandlerFactory.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RollbarHandlerFactory
1818
/**
1919
* @var string|null
2020
*/
21-
private $minimumLevel;
21+
private $monologMinimumLevel;
2222

2323
/**
2424
* RollbarHandlerFactory constructor.
@@ -53,7 +53,9 @@ public function __construct(ContainerInterface $container)
5353
};
5454
}
5555

56-
$this->minimumLevel = $config['minimum_level'] ?: LogLevel::ERROR;
56+
$this->monologMinimumLevel = isset($config['monolog_minimum_level'])
57+
? $config['monolog_minimum_level']
58+
: LogLevel::ERROR;
5759

5860
Rollbar::init($config, false, false, false);
5961
}
@@ -65,6 +67,6 @@ public function __construct(ContainerInterface $container)
6567
*/
6668
public function createRollbarHandler()
6769
{
68-
return new RollbarHandler(Rollbar::logger(), $this->minimumLevel);
70+
return new RollbarHandler(Rollbar::logger(), $this->monologMinimumLevel);
6971
}
7072
}

0 commit comments

Comments
 (0)