chiark / gitweb /
journal: don't complain if the syslog forwarder socket doesn't exist
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Jul 2012 14:23:06 +0000 (16:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jul 2012 14:23:06 +0000 (16:23 +0200)
src/journal/journald.c

index 17aac88..18db31c 100644 (file)
@@ -868,7 +868,8 @@ static void forward_syslog_iovec(Server *s, const struct iovec *iovec, unsigned
                         return;
         }
 
-        log_debug("Failed to forward syslog message: %m");
+        if (errno != ENOENT)
+                log_debug("Failed to forward syslog message: %m");
 }
 
 static void forward_syslog_raw(Server *s, int priority, const char *buffer, struct ucred *ucred, struct timeval *tv) {