Make --quiet quieter (like it used to be), but also don't allow it
authorWayne Davison <wayned@samba.org>
Sun, 14 May 2006 00:27:33 +0000 (00:27 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 14 May 2006 00:27:33 +0000 (00:27 +0000)
to interfere with any logging of messages that is going on.

log.c

diff --git a/log.c b/log.c
index f62a8cf..139f002 100644 (file)
--- a/log.c
+++ b/log.c
@@ -224,9 +224,6 @@ void rwrite(enum logcode code, char *buf, int len)
        if (len < 0)
                exit_cleanup(RERR_MESSAGEIO);
 
-       if (quiet && code == FINFO)
-               return;
-
        if (am_server && msg_fd_out >= 0) {
                /* Pass the message to our sibling. */
                send_msg((enum msgcode)code, buf, len);
@@ -258,6 +255,9 @@ void rwrite(enum logcode code, char *buf, int len)
        } else if (code == FLOG)
                return;
 
+       if (quiet && code != FERROR)
+               return;
+
        if (am_server) {
                /* Pass the message to the non-server side. */
                if (send_msg((enum msgcode)code, buf, len))