Make starting log even in debug mode
This commit is contained in:
parent
0fc9b555f1
commit
cb9055072d
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,6 @@
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "version.h"
|
|
||||||
#include "mkdirpp.h"
|
#include "mkdirpp.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
@ -190,7 +189,6 @@ LOG_OpenSystemLog(void)
|
||||||
#else
|
#else
|
||||||
system_log = 1;
|
system_log = 1;
|
||||||
openlog("chronyd", LOG_PID, LOG_DAEMON);
|
openlog("chronyd", LOG_PID, LOG_DAEMON);
|
||||||
LOG(LOGS_INFO, LOGF_Logging, "chronyd version %s starting", PROGRAM_VERSION_STRING);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
main.c
2
main.c
|
@ -320,6 +320,8 @@ int main
|
||||||
LOG_OpenSystemLog();
|
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
|
/* 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
|
* forking, so that message logging goes to the right place (i.e. syslog), in
|
||||||
* case this chronyd is being run from a boot script. */
|
* case this chronyd is being run from a boot script. */
|
||||||
|
|
Loading…
Reference in a new issue