From 9cd5f72c1a13688f94490b8dae37d7aa70b85174 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 24 Apr 2008 12:05:24 +1000 Subject: [PATCH] Another attempt to reduce "OK" flooding of the log file. r2481 | dcl | 2008-04-24 12:05:24 +1000 (Thu, 24 Apr 2008) | 2 lines --- conman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conman.c b/conman.c index c3265e41..f19c715a 100644 --- a/conman.c +++ b/conman.c @@ -696,7 +696,9 @@ static void writeToLogFiles(SConnection *self, char *buffer) { iRet = 0; } - if (iRet == 0 && buffer[0] == 'O' && buffer[1] == 'K') { + if (/*iRet == 0 &&*/ + buffer[0] == 'O' && buffer[1] == 'K' && + (buffer[2] == '\0' || buffer[2] == '\r' || buffer[2] == '\n')) { /* supress */ iRet = 0; } else {