From 9b0e154478535f34a70fbf91411c555baaae0ce7 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Fri, 30 Dec 2022 03:37:03 -0800
Subject: [PATCH] Clean-up the logging around the auto-tuned outbuf highwater
 mark

---
 src/sbbs3/main.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index 50d8d13c1c..4ab9c90989 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -2333,13 +2333,11 @@ void output_thread(void* arg)
 			}
 #endif
 #endif
-			lprintf(LOG_DEBUG,"Autotuning outbuf highwater mark to %d based on MSS",i);
-			if(i>IO_THREAD_BUF_SIZE) {
-				lprintf(LOG_DEBUG,"MSS (%d) is higher than IO_THREAD_BUF_SIZE (%d)",i,IO_THREAD_BUF_SIZE);
+			if(i>IO_THREAD_BUF_SIZE)
 				i=IO_THREAD_BUF_SIZE;
-			}
 			sbbs->outbuf.highwater_mark=i;
 			mss=sbbs->outbuf.highwater_mark;
+			lprintf(LOG_DEBUG, "%s outbuf highwater mark tuned to %d based on MSS", node, sbbs->outbuf.highwater_mark);
 		}
 	}
 #endif
-- 
GitLab