From 3d325e29c4f1a14372d1072da1c2500f28c1b3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 20 Apr 2018 09:36:42 +0300 Subject: [PATCH] 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. --- server/core/config.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/core/config.cc b/server/core/config.cc index 408f14342..b2b8399f8 100644 --- a/server/core/config.cc +++ b/server/core/config.cc @@ -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)