LOGIF and skygw_log_write removed from cli.c and debugcli.c

This commit is contained in:
Johan Wikman 2015-11-16 23:35:25 +02:00
parent 453055a6c0
commit ac358af7a6
2 changed files with 6 additions and 20 deletions

View File

@ -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]);
}
}

View File

@ -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]);
}
}
}