]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
Be more careful in daemon_init().
[paraslash.git] / audiod.c
index dee31d5c5606727d1f320e1ad16abb09a0c6b97b..65343e5c26fed69375c25b7ae8a2ac26880dc6ab 100644 (file)
--- 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;