Kaynağa Gözat

log: move Corosync started log messages

"Corosync Cluster Engine ... started" message is shown after
logsys is full configured.

Signed-off-by: Kazunori INOUE <inouekazu@intellilink.co.jp>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Kazunori INOUE 13 yıl önce
ebeveyn
işleme
1ad21e384e
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      exec/main.c

+ 3 - 3
exec/main.c

@@ -1084,9 +1084,6 @@ int main (int argc, char **argv, char **envp)
 
 	corosync_mlockall ();
 
-	log_printf (LOGSYS_LEVEL_NOTICE, "Corosync Cluster Engine ('%s'): started and ready to provide service.", VERSION);
-	log_printf (LOGSYS_LEVEL_INFO, "Corosync built-in features:" PACKAGE_FEATURES "");
-
 	/*
 	 * Other signals are registered later via qb_loop_signal_add
 	 */
@@ -1128,6 +1125,9 @@ int main (int argc, char **argv, char **envp)
 		corosync_exit_error (COROSYNC_DONE_LOGCONFIGREAD);
 	}
 
+	log_printf (LOGSYS_LEVEL_NOTICE, "Corosync Cluster Engine ('%s'): started and ready to provide service.", VERSION);
+	log_printf (LOGSYS_LEVEL_INFO, "Corosync built-in features:" PACKAGE_FEATURES "");
+
 	/*
 	 * Make sure required directory is present
 	 */