From 2b72e723e8cb623ff9e0ae94210e9c2aa5cede39 Mon Sep 17 00:00:00 2001 From: Wazir Ahmed Date: Fri, 19 Sep 2025 13:02:49 +0530 Subject: [PATCH] Add INFO log when values from configuration file are ignored Signed-off-by: Wazir Ahmed --- lib/Admin_Bootstrap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Admin_Bootstrap.cpp b/lib/Admin_Bootstrap.cpp index 66ef33f20..798e3f6ba 100644 --- a/lib/Admin_Bootstrap.cpp +++ b/lib/Admin_Bootstrap.cpp @@ -830,6 +830,12 @@ bool ProxySQL_Admin::init(const bootstrap_info_t& bootstrap_info) { } } + if (admindb_file_exists && GloVars.config_file) { + proxy_info("Ignoring configuration file at %s\n", GloVars.config_file); + proxy_info("Loading configuration from the config DB (%s) as it has higher precedence over the config file.\n", GloVars.admindb); + proxy_info("NOTE: Changes to %s will be ignored while the config DB exists. For more information, refer: https://proxysql.com/documentation/configuring-proxysql\n", GloVars.config_file); + } + /** * @brief Inserts a default 'mysql_group_replication_hostgroup'. * @details Uses the following defaults: