From c9066196202f9eb0a61b24296f2246c8a3c15899 Mon Sep 17 00:00:00 2001 From: benrubson <6764151+benrubson@users.noreply.github.com> Date: Tue, 26 May 2020 19:53:25 +0200 Subject: [PATCH] Log data sent/received even if error --- log.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); -- 2.47.2