mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-18 18:19:13 -05:00
tests: fix min severity doesn't get updated
If the logger is started with `Activate()` before `SetActive()`, it won't log anything, as the logger updates the "min severity" value of loggers only when starting them, and if they're not active at that point, they will just be ignored, so the min severity remains at info.
This commit is contained in:
parent
303b46bf14
commit
161f16641f
1 changed files with 1 additions and 1 deletions
|
|
@ -95,8 +95,8 @@ struct TestLoggerFixture
|
|||
TestLoggerFixture()
|
||||
{
|
||||
testLogger->SetSeverity(testLogger->SeverityToString(LogDebug));
|
||||
testLogger->Activate(true);
|
||||
testLogger->SetActive(true);
|
||||
testLogger->Activate(true);
|
||||
}
|
||||
|
||||
~TestLoggerFixture()
|
||||
|
|
|
|||
Loading…
Reference in a new issue