From 62414974b55d78a67d4170da85091a915087219f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 17 Feb 2008 21:52:21 +0100 Subject: [PATCH] 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. --- audiod.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5