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:
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
|
||||
lib->settings->set_int(lib->settings, "charon-nm.syslog.daemon.default",
|
||||
lib->settings->get_int(lib->settings,
|
||||
"charon-nm.syslog.daemon.default", 1));
|
||||
charon->load_loggers(charon, NULL, FALSE);
|
||||
charon->load_loggers(charon);
|
||||
|
||||
/* use random ports to avoid conflicts with regular charon */
|
||||
lib->settings->set_int(lib->settings, "charon-nm.port", 0);
|
||||
|
||||
Reference in New Issue
Block a user