From c6c42c0cec17852f87e47d1745668c1bee8a88e7 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Thu, 20 Oct 2022 20:56:34 -0700 Subject: [PATCH] Don't log debug msgs when reading 0 (\x00) from chat.dab file, expected This just resulted in a lot of unhelpful noise in the log output --- src/sbbs3/chat.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sbbs3/chat.cpp b/src/sbbs3/chat.cpp index 8b6facccad..5db109bd10 100644 --- a/src/sbbs3/chat.cpp +++ b/src/sbbs3/chat.cpp @@ -1095,14 +1095,13 @@ void sbbs_t::privchat(bool forced, int node_num) if(rd != 1) { lprintf(LOG_ERR, "read character from %s returned %d instead of 1", inpath, rd); ch = 0; - } else { - if(ch < ' ') - lprintf(LOG_DEBUG, "read control character %u (%s) from %s", ch, c_escape_char(ch), inpath); - else - lprintf(LOG_DEBUG, "read character '%c' from %s", ch, inpath); } (void)lseek(in,-1L,SEEK_CUR); if(!ch) break; /* char from other node */ + if(ch < ' ') + lprintf(LOG_DEBUG, "read control character %u (%s) from %s", ch, c_escape_char(ch), inpath); + else + lprintf(LOG_DEBUG, "read character '%c' from %s", ch, inpath); activity=1; if(sys_status&SS_SPLITP && !remote_activity) { ansi_getxy(&x,&y); -- GitLab