1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 23:23:13 +02:00

Fix the on start library version logging to include the module.

This commit is contained in:
Sadie Powell
2025-03-05 16:03:23 +00:00
parent a0a9d433dc
commit 14342f6375
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ public:
{
me = this;
Log() << "Module was compiled against LDAP (" << LDAP_VENDOR_NAME << ") version " << LDAP_VENDOR_VERSION_MAJOR << "." << LDAP_VENDOR_VERSION_MINOR << "." << LDAP_VENDOR_VERSION_PATCH;
Log(this) << "Module was compiled against LDAP (" << LDAP_VENDOR_NAME << ") version " << LDAP_VENDOR_VERSION_MAJOR << "." << LDAP_VENDOR_VERSION_MINOR << "." << LDAP_VENDOR_VERSION_PATCH;
}
~ModuleLDAP()
+2 -2
View File
@@ -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<const Anope::string>("name", "mysql/main") == cname)
if (config.GetBlock("mysql", i).Get<const Anope::string>("name", "mysql/main") == cname)
break;
if (i == Config->CountBlock("mysql"))
+1 -1
View File
@@ -73,7 +73,7 @@ public:
std::vector<char> pcre_version(16);
if (pcre2_config(PCRE2_CONFIG_VERSION, pcre_version.data()) >= 0)
Log() << "Module was compiled against PCRE2 version " << PCRE2_MAJOR << "." << PCRE2_MINOR << " and is running against version " << pcre_version.data();
Log(this) << "Module was compiled against PCRE2 version " << PCRE2_MAJOR << "." << PCRE2_MINOR << " and is running against version " << pcre_version.data();
}
~ModuleRegexPCRE()
+1 -1
View File
@@ -63,7 +63,7 @@ public:
{
this->SetPermanent(true);
Log() << "Module was compiled against TRE version " << TRE_VERSION << " and is running against version " << tre_version();
Log(this) << "Module was compiled against TRE version " << TRE_VERSION << " and is running against version " << tre_version();
}
~ModuleRegexTRE()
+1 -1
View File
@@ -103,7 +103,7 @@ class ModuleSQLite final
public:
ModuleSQLite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
Log() << "Module was compiled against SQLite version " << SQLITE_VERSION << " and is running against version " << sqlite3_libversion();
Log(this) << "Module was compiled against SQLite version " << SQLITE_VERSION << " and is running against version " << sqlite3_libversion();
}
~ModuleSQLite()
+1 -1
View File
@@ -300,7 +300,7 @@ public:
me = this;
this->SetPermanent(true);
Log() << "Module was compiled against GnuTLS version " << GNUTLS_VERSION << " and is running against version " << gnutls_check_version(nullptr);
Log(this) << "Module was compiled against GnuTLS version " << GNUTLS_VERSION << " and is running against version " << gnutls_check_version(nullptr);
}
~GnuTLSModule()
+1 -1
View File
@@ -126,7 +126,7 @@ public:
SSL_CTX_set_session_id_context(client_ctx, reinterpret_cast<const unsigned char *>(context_name.c_str()), context_name.length());
SSL_CTX_set_session_id_context(server_ctx, reinterpret_cast<const unsigned char *>(context_name.c_str()), context_name.length());
Log() << "Module was compiled against OpenSSL version " << OPENSSL_VERSION_STR << " and is running against version " << OpenSSL_version(OPENSSL_VERSION_STRING);
Log(this) << "Module was compiled against OpenSSL version " << OPENSSL_VERSION_STR << " and is running against version " << OpenSSL_version(OPENSSL_VERSION_STRING);
}
~SSLModule()
+1 -1
View File
@@ -268,7 +268,7 @@ public:
unsigned int xmlrpc_major, xmlrpc_minor, xmlrpc_point;
xmlrpc_version(&xmlrpc_major, &xmlrpc_minor, &xmlrpc_point);
Log() << "Module is running against xmlrpc-c version " << xmlrpc_major << '.' << xmlrpc_minor << '.' << xmlrpc_point;
Log(this) << "Module is running against xmlrpc-c version " << xmlrpc_major << '.' << xmlrpc_minor << '.' << xmlrpc_point;
}
~ModuleXMLRPC() override