From ac358af7a6ddfeb5458704911fe95f693237c269 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Mon, 16 Nov 2015 23:35:25 +0200 Subject: [PATCH] LOGIF and skygw_log_write removed from cli.c and debugcli.c --- server/modules/routing/cli.c | 12 ++---------- server/modules/routing/debugcli.c | 14 ++++---------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/server/modules/routing/cli.c b/server/modules/routing/cli.c index 19bb15cc7..18a54ab3a 100644 --- a/server/modules/routing/cli.c +++ b/server/modules/routing/cli.c @@ -100,10 +100,7 @@ version() void ModuleInit() { - LOGIF(LM, (skygw_log_write( - LOGFILE_MESSAGE, - "Initialise CLI router module %s.\n", - version_str))); + MXS_NOTICE("Initialise CLI router module %s.", version_str); spinlock_init(&instlock); instances = NULL; } @@ -149,12 +146,7 @@ int i; { for (i = 0; options[i]; i++) { - { - LOGIF(LE, (skygw_log_write( - LOGFILE_ERROR, - "Unknown option for CLI '%s'\n", - options[i]))); - } + MXS_ERROR("Unknown option for CLI '%s'", options[i]); } } diff --git a/server/modules/routing/debugcli.c b/server/modules/routing/debugcli.c index 9f6213809..3dcbe0a31 100644 --- a/server/modules/routing/debugcli.c +++ b/server/modules/routing/debugcli.c @@ -99,12 +99,9 @@ version() void ModuleInit() { - LOGIF(LM, (skygw_log_write( - LOGFILE_MESSAGE, - "Initialise debug CLI router module %s.\n", - version_str))); - spinlock_init(&instlock); - instances = NULL; + MXS_NOTICE("Initialise debug CLI router module %s.", version_str); + spinlock_init(&instlock); + instances = NULL; } /** @@ -158,10 +155,7 @@ int i; } else { - LOGIF(LE, (skygw_log_write( - LOGFILE_ERROR, - "Unknown option for CLI '%s'\n", - options[i]))); + MXS_ERROR("Unknown option for CLI '%s'", options[i]); } } }