summaryrefslogtreecommitdiff
path: root/common/src/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/log.cpp')
-rw-r--r--common/src/log.cpp12
1 files changed, 6 insertions, 6 deletions
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");