mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-14 03:47:34 +00:00
Change initialization order for logsys logging to files to work properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1526 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
25f715574f
commit
bd54e87e16
@ -569,13 +569,14 @@ int main (int argc, char **argv)
|
||||
openais_exit_error (AIS_DONE_MAINCONFIGREAD);
|
||||
}
|
||||
|
||||
logsys_config_facility_set ("openais", main_config.syslog_facility);
|
||||
logsys_config_mode_set (main_config.logmode);
|
||||
|
||||
res = logsys_config_file_set (&error_string, main_config.logfile);
|
||||
if (res == -1) {
|
||||
log_printf (LOG_LEVEL_ERROR, error_string);
|
||||
openais_exit_error (AIS_DONE_LOGSETUP);
|
||||
}
|
||||
logsys_config_facility_set ("openais", main_config.syslog_facility);
|
||||
logsys_config_mode_set (main_config.logmode);
|
||||
|
||||
aisexec_uid_determine (&main_config);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user