Restore old behavior of logging most daemon errors instead of sending
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index d29e2b9..f7e124f 100644 (file)
--- a/log.c
+++ b/log.c
@@ -182,7 +182,8 @@ void rwrite(enum logcode code, char *buf, int len)
                        send_msg((enum msgcode)code, buf, len);
                        return;
                }
-               if (io_multiplex_write((enum msgcode)code, buf, len))
+               if (!am_daemon
+                   && io_multiplex_write((enum msgcode)code, buf, len))
                        return;
        }