From 567334fecf3bd2b481e32c67ef91f3a4ee04eabb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Aug 2014 10:51:15 +0200 Subject: [PATCH] log: disable the non-buffered logging YAZ-780 This makes yaz_log on regular files make one write per line rather than one write per fprintf call. --- src/log.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/log.c b/src/log.c index e3c8dc8..bbaf4fb 100644 --- a/src/log.c +++ b/src/log.c @@ -340,8 +340,6 @@ static void yaz_log_open_check(struct tm *tm, int force, const char *filemode) { yaz_log_close(); yaz_log_info.log_file = new_file; - if (l_level & YLOG_FLUSH) - setvbuf(yaz_log_info.log_file, 0, _IONBF, 0); } else { -- 1.7.10.4