Skip to content

Commit

Permalink
Log data sent/received even if error
Browse files Browse the repository at this point in the history
  • Loading branch information
benrubson committed May 26, 2020
1 parent bcb0a24 commit c906619
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c906619

Please sign in to comment.