conftest: Fix log level settings for stdout
[strongswan.git] / src / conftest / conftest.c
index bb4c5ed..e8c257d 100644 (file)
@@ -386,6 +386,9 @@ static void load_loggers(file_logger_t *logger)
        char *section;
 
        load_log_levels(logger, "stdout");
+       /* Re-add the logger to propagate configuration changes to the
+        * logging system */
+       charon->bus->add_logger(charon->bus, &logger->logger);
 
        enumerator = conftest->test->create_section_enumerator(conftest->test, "log");
        while (enumerator->enumerate(enumerator, &section))