MXS-1814: Log warning with log_debug in release mode
With release mode binaries, the log_debug option has no effect. Now a warning is logged if the option is used.
This commit is contained in:
@ -1770,6 +1770,12 @@ handle_global_item(const char *name, const char *value)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifndef SS_DEBUG
|
||||
if (strcmp(name, "log_debug") == 0)
|
||||
{
|
||||
MXS_WARNING("The 'log_debug' option has no effect in release mode.");
|
||||
}
|
||||
#endif
|
||||
for (i = 0; lognames[i].name; i++)
|
||||
{
|
||||
if (strcasecmp(name, lognames[i].name) == 0)
|
||||
|
||||
Reference in New Issue
Block a user