projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af7df1e
)
log: disable the non-buffered logging YAZ-780
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Aug 2014 08:51:15 +0000
(10:51 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Aug 2014 08:51:15 +0000
(10:51 +0200)
This makes yaz_log on regular files make one write per line rather
than one write per fprintf call.
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index
e3c8dc8
..
bbaf4fb
100644
(file)
--- 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
{