14 lines
318 B
Diff
14 lines
318 B
Diff
--- a/util/logging.c
|
|
+++ b/util/logging.c
|
|
@@ -114,9 +114,9 @@ void start_log() {
|
|
g_dest = LOG_TO_CONSOLE;
|
|
PR_ERRNO("日志文件打开失败,将输出至控制台");
|
|
}
|
|
- setvbuf(g_log_fp, NULL, _IOLBF, BUFSIZ);
|
|
break;
|
|
}
|
|
+ setvbuf(g_log_fp, NULL, _IOLBF, BUFSIZ);
|
|
}
|
|
|
|
void close_log() {
|