From 8dee487439294bba0220649e93e139b4dfc6902c Mon Sep 17 00:00:00 2001 From: yangwei Date: Tue, 8 Sep 2020 17:00:25 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=E8=A1=A5=E5=85=85module=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E8=87=B3=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E9=BB=98=E8=AE=A4=E8=BE=93=E5=87=BA=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E6=A8=A1=E6=9D=BF=E5=A2=9E=E5=8A=A0=E6=94=B9module?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demo_zlog.conf | 2 +- src/MESA_handle_logger.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/demo_zlog.conf b/demo/demo_zlog.conf index bd945d4..4c15579 100644 --- a/demo/demo_zlog.conf +++ b/demo/demo_zlog.conf @@ -1,5 +1,5 @@ [global] -default format = "%d(%c), %V, %m%n" +default format = "%d(%c), %V, %U, %m%n" [levels] DEBUG=10 INFO=20 diff --git a/src/MESA_handle_logger.c b/src/MESA_handle_logger.c index 94a6384..eb37b44 100644 --- a/src/MESA_handle_logger.c +++ b/src/MESA_handle_logger.c @@ -205,7 +205,7 @@ void MESA_handle_runtime_log(void *handle, int level, const char *module, const va_list ap; va_start(ap, fmt); - vzlog(p_handle->zc, __FILE__, sizeof(__FILE__) - 1, __func__, sizeof(__func__) - 1, __LINE__, level, fmt, ap); + vzlog(p_handle->zc, __FILE__, sizeof(__FILE__) - 1, module, strlen(module), __LINE__, level, fmt, ap); va_end(ap); return ; }