aboutsummaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-14 01:55:30 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-14 01:55:30 +0200
commit156bbd7b66cf29220c2ff6a86217c4dec5e33765 (patch)
tree692e9cb7d2edf6c3ddfd0b9aa85a4f6b5d4c4a12 /log.c
parentc0417e80a965d74944260752f4f58378a4cdd8fd (diff)
Log to stderr+syslog until daemonized. Current behaviour is too confusing
and annoying.
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.c b/log.c
index 4606fb88..d7d971bd 100644
--- a/log.c
+++ b/log.c
@@ -171,5 +171,7 @@ static void log_console(int level, char *message) {
if(level == LOGLVL_DEBUG)
fprintf(stdout, "Debug: %s\n", message);
#endif
+ /* Always log stuff in syslogs too. */
+ log_syslog(level, message);
return;
}