mirror of https://git.kore.io/kore.git
for single binaries use progname as the log id.
This commit is contained in:
parent
9abf15a498
commit
d2c30fd70b
|
@ -63,8 +63,15 @@ kore_debug_internal(char *file, int line, const char *fmt, ...)
|
|||
void
|
||||
kore_log_init(void)
|
||||
{
|
||||
#if defined(KORE_SINGLE_BINARY)
|
||||
extern const char *__progname;
|
||||
const char *name = __progname;
|
||||
#else
|
||||
const char *name = "kore";
|
||||
#endif
|
||||
|
||||
if (!foreground)
|
||||
openlog("kore", LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
||||
openlog(name, LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue