From d5da31067c3b602729047d4cf8f48b6580187869 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 21 一月 2021 18:09:36 +0800
Subject: [PATCH] update
---
include/usgcommon/logger.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/usgcommon/logger.h b/include/usgcommon/logger.h
index a735086..61d6e02 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:
@@ -64,7 +66,7 @@
void error(const char *fmt, ...);
void error(int err, const char *fmt, ...);
void fatal(const char *fmt, ...);
-
+ void fatal(int err, const char *fmt, ...) ;
static const char * strlevel(int level);
};
--
Gitblit v1.8.0