From 14342f6375cce455ddde79cb9403daea6a727b7f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 5 Mar 2025 16:03:23 +0000 Subject: Fix the on start library version logging to include the module. --- modules/extra/mysql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra/mysql.cpp') diff --git a/modules/extra/mysql.cpp b/modules/extra/mysql.cpp index 0d39c87a4..9a0a92710 100644 --- a/modules/extra/mysql.cpp +++ b/modules/extra/mysql.cpp @@ -245,7 +245,7 @@ public: DThread = new DispatcherThread(); DThread->Start(); - Log() << "Module was compiled against MySQL version " << (MYSQL_VERSION_ID / 10000) << "." << (MYSQL_VERSION_ID / 100 % 100) << "." << (MYSQL_VERSION_ID % 100) << " and is running against version " << mysql_get_client_info(); + Log(this) << "Module was compiled against MySQL version " << (MYSQL_VERSION_ID / 10000) << "." << (MYSQL_VERSION_ID / 100 % 100) << "." << (MYSQL_VERSION_ID % 100) << " and is running against version " << mysql_get_client_info(); } ~ModuleSQL() @@ -273,7 +273,7 @@ public: ++it; for (i = 0; i < Config->CountBlock("mysql"); ++i) - if (config.GetBlock("mysql", i).Get("name", "mysql/main") == cname) + if (config.GetBlock("mysql", i).Get("name", "mysql/main") == cname) break; if (i == Config->CountBlock("mysql")) -- cgit