]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Log data sent/received even if error 5/head
authorbenrubson <6764151+benrubson@users.noreply.github.com>
Tue, 26 May 2020 17:53:25 +0000 (19:53 +0200)
committerbenrubson <6764151+benrubson@users.noreply.github.com>
Tue, 26 May 2020 17:53:25 +0000 (19:53 +0200)
log.c

diff --git a/log.c b/log.c
index 4cd3aa611aabd674f6c78ac968e071e02f3dd7b8..01eef439c00ad8ad626067ee4863b2bd31844272 100644 (file)
--- 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);