From 73ebfbc4f3fce4f7197b16b74ed4d6abaa9367b5 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 11 一月 2021 19:34:42 +0800 Subject: [PATCH] update --- include/usgcommon/logger.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/usgcommon/logger.h b/include/usgcommon/logger.h index a735086..cf0d2ba 100644 --- a/include/usgcommon/logger.h +++ b/include/usgcommon/logger.h @@ -17,7 +17,7 @@ FILE *logFile; void dolog(const char *fmt, va_list ap, int level, int err = 0) { - char buf[MAXBUF]; + char buf[MAXLINE]; struct timeval tv; struct tm *info; @@ -42,6 +42,8 @@ fflush(NULL); /* flushes all stdio output streams */ } + + void init(); private: -- Gitblit v1.8.0