From: Adam Dickmeiss Date: Tue, 19 Aug 2014 08:51:15 +0000 (+0200) Subject: log: disable the non-buffered logging YAZ-780 X-Git-Tag: v5.4.0~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=567334fecf3bd2b481e32c67ef91f3a4ee04eabb;p=yaz-moved-to-github.git 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. --- 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 {