From 124c9d0513149efe9d7950936b659136057e0f6f Mon Sep 17 00:00:00 2001 From: liuchang Date: Tue, 28 Mar 2023 03:55:32 +0000 Subject: fix zlog --- common/src/log.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/src/log.cpp') diff --git a/common/src/log.cpp b/common/src/log.cpp index 290fbd9..af4794e 100644 --- a/common/src/log.cpp +++ b/common/src/log.cpp @@ -6,13 +6,13 @@ void *g_default_logger = NULL; // return -1 : error int LOG_INIT(const char *profile) { - // if (0 != MESA_handle_runtime_log_creation(profile)) - // { - // fprintf(stderr, "FATAL: unable to create runtime logger\n"); - // return -1; - // } + if (0 != MESA_handle_runtime_log_creation(profile)) + { + fprintf(stderr, "FATAL: unable to create runtime logger\n"); + return -1; + } - g_default_logger = MESA_create_runtime_log_handle("./log/shaping", RLOG_LV_DEBUG); + g_default_logger = MESA_create_runtime_log_handle("log/shaping", RLOG_LV_DEBUG); if (g_default_logger == NULL) { fprintf(stderr, "FATAL: unable to create log handle\n"); -- cgit v1.2.3