mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 11:08:51 +02: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
9a5fd4bf96
commit
5af6b3b2f5
@ -88,8 +88,8 @@ struct TestLoggerFixture
|
||||
TestLoggerFixture()
|
||||
{
|
||||
testLogger->SetSeverity(testLogger->SeverityToString(LogDebug));
|
||||
testLogger->Activate(true);
|
||||
testLogger->SetActive(true);
|
||||
testLogger->Activate(true);
|
||||
}
|
||||
|
||||
~TestLoggerFixture()
|
||||
|
Loading…
x
Reference in New Issue
Block a user