From 5af6b3b2f5e66bb4bd39a929f0a4c5cac5b4adce Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 25 Sep 2025 09:34:28 +0200 Subject: [PATCH] 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. --- test/base-testloggerfixture.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/base-testloggerfixture.hpp b/test/base-testloggerfixture.hpp index 69c073b02..c5a4f63e2 100644 --- a/test/base-testloggerfixture.hpp +++ b/test/base-testloggerfixture.hpp @@ -88,8 +88,8 @@ struct TestLoggerFixture TestLoggerFixture() { testLogger->SetSeverity(testLogger->SeverityToString(LogDebug)); - testLogger->Activate(true); testLogger->SetActive(true); + testLogger->Activate(true); } ~TestLoggerFixture()