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:
@@ -275,7 +275,7 @@ int main(int argc, char *argv[])
|
||||
lib->settings->set_int(lib->settings, "%s.syslog.daemon.default",
|
||||
lib->settings->get_int(lib->settings, "%s.syslog.daemon.default", 1,
|
||||
dmn_name), dmn_name);
|
||||
charon->load_loggers(charon, NULL, FALSE);
|
||||
charon->load_loggers(charon);
|
||||
|
||||
DBG1(DBG_DMN, "Starting charon with TKM backend (strongSwan "VERSION")");
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ static bool test_runner_init(bool init)
|
||||
libcharon_init();
|
||||
lib->settings->set_int(lib->settings,
|
||||
"test-runner.filelog.stdout.default", 0);
|
||||
charon->load_loggers(charon, NULL, FALSE);
|
||||
charon->load_loggers(charon);
|
||||
|
||||
/* Register TKM specific plugins */
|
||||
static plugin_feature_t features[] = {
|
||||
|
||||
Reference in New Issue
Block a user