Commit 0ce08b41 authored by Michael Smith's avatar Michael Smith
Browse files

Open logs in line-buffered mode, so that logging is actually useful.

svn path=/trunk/log/; revision=2075
parent 7a56cc33
......@@ -84,6 +84,7 @@ int log_open(const char *filename)
_release_log_id(log_id);
return LOG_ECANTOPEN;
}
setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0);
return log_id;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment