diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-15 22:23:53 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-15 22:23:53 +0200 |
commit | a2a979ea2e7ded82cbe4d4cab5da6e613d74a9d0 (patch) | |
tree | 330144048aeb84716e6eb3b6e74761e06706750f /src/kike.c | |
parent | 18cb2941f340550c1425dfa1f1376fdf3e69d42e (diff) | |
download | xK-a2a979ea2e7ded82cbe4d4cab5da6e613d74a9d0.tar.gz xK-a2a979ea2e7ded82cbe4d4cab5da6e613d74a9d0.tar.xz xK-a2a979ea2e7ded82cbe4d4cab5da6e613d74a9d0.zip |
Make it possible to route messages to syslog
Diffstat (limited to 'src/kike.c')
-rw-r--r-- | src/kike.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1414,7 +1414,11 @@ main (int argc, char *argv[]) } // TODO: daemonize - // TODO: syslog (if not running in debug mode) + if (!g_debug_mode) + { + openlog (PROGRAM_NAME, LOG_NDELAY | LOG_NOWAIT | LOG_PID, 0); + g_log_message_real = log_message_syslog; + } ctx.polling = true; while (ctx.polling) |