From: Andre Noll Date: Sun, 17 Feb 2008 20:52:21 +0000 (+0100) Subject: audiod.c: Don't log to /dev/null. X-Git-Tag: v0.3.1~11 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=62414974b55d78a67d4170da85091a915087219f audiod.c: Don't log to /dev/null. There's no point in computing the log message if we are going to write it to /dev/null. --- diff --git a/audiod.c b/audiod.c index dee31d5c..65343e5c 100644 --- a/audiod.c +++ b/audiod.c @@ -144,6 +144,8 @@ void para_log(int ll, const char* fmt,...) if (ll < conf.loglevel_arg) return; + if (!logfile && conf.daemon_given) + return; if (!hostname) hostname = para_hostname(); outfd = logfile? logfile : stderr;