]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Make starting log even in debug mode
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 14 Feb 2011 17:21:38 +0000 (18:21 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 14 Feb 2011 17:21:38 +0000 (18:21 +0100)
logging.c
main.c

index f82952687a6251dd2aa7695ed15efe2fbcaa9368..ff8832f657db2772dbce5fb33b1a48fe28c77de0 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -30,7 +30,6 @@
 #include "main.h"
 #include "conf.h"
 #include "logging.h"
-#include "version.h"
 #include "mkdirpp.h"
 #include "util.h"
 
@@ -190,7 +189,6 @@ LOG_OpenSystemLog(void)
 #else
   system_log = 1;
   openlog("chronyd", LOG_PID, LOG_DAEMON);
-  LOG(LOGS_INFO, LOGF_Logging, "chronyd version %s starting", PROGRAM_VERSION_STRING);
 #endif
 }
 
diff --git a/main.c b/main.c
index bf2c2426e3bf477d76a106032f825a21d60698a2..93148fc69ea0fd99f36b47db1f2829bb524d05ee 100644 (file)
--- a/main.c
+++ b/main.c
@@ -320,6 +320,8 @@ int main
     LOG_OpenSystemLog();
   }
   
+  LOG(LOGS_INFO, LOGF_Main, "chronyd version %s starting", PROGRAM_VERSION_STRING);
+
   /* Check whether another chronyd may already be running.  Do this after
    * forking, so that message logging goes to the right place (i.e. syslog), in
    * case this chronyd is being run from a boot script. */