From: benrubson <6764151+benrubson@users.noreply.github.com> Date: Tue, 26 May 2020 17:53:25 +0000 (+0200) Subject: Log data sent/received even if error X-Git-Tag: v3.2.0pre1~81^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5%2Fhead;p=thirdparty%2Frsync.git Log data sent/received even if error --- diff --git a/log.c b/log.c index 4cd3aa61..01eef439 100644 --- a/log.c +++ b/log.c @@ -873,12 +873,11 @@ void log_delete(const char *fname, int mode) */ void log_exit(int code, const char *file, int line) { - if (code == 0) { - rprintf(FLOG,"sent %s bytes received %s bytes total size %s\n", - big_num(stats.total_written), - big_num(stats.total_read), - big_num(stats.total_size)); - } else if (am_server != 2) { + rprintf(FLOG,"sent %s bytes received %s bytes total size %s\n", + big_num(stats.total_written), + big_num(stats.total_read), + big_num(stats.total_size)); + if (code != 0 && am_server != 2) { const char *name; name = rerr_name(code);