daemon: Use separate method to set default loggers
This way it is not necessary to pass the same values to reload the loggers.
This commit is contained in:
@@ -45,7 +45,7 @@ static void initialize_logging()
|
||||
lib->settings->set_int(lib->settings, "%s.filelog.stderr.default",
|
||||
lib->settings->get_int(lib->settings, "%s.filelog.stderr.default",
|
||||
level, lib->ns), lib->ns);
|
||||
charon->load_loggers(charon, NULL, TRUE);
|
||||
charon->load_loggers(charon);
|
||||
}
|
||||
|
||||
static bool test_runner_init(bool init)
|
||||
|
||||
@@ -282,7 +282,7 @@ static void initialize_logging()
|
||||
level, lib->ns), lib->ns);
|
||||
lib->settings->set_bool(lib->settings, "%s.filelog.stderr.ike_name", TRUE,
|
||||
lib->ns);
|
||||
charon->load_loggers(charon, NULL, TRUE);
|
||||
charon->load_loggers(charon);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user