summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-05 16:03:23 +0000
committerSadie Powell <sadie@witchery.services>2025-03-05 16:03:23 +0000
commit14342f6375cce455ddde79cb9403daea6a727b7f (patch)
tree5ccb6680807983962320df7a0f8b8f277a808ea1
parenta0a9d433dce2827e8aeae29aa2eb5325ed7af150 (diff)
Fix the on start library version logging to include the module.
-rw-r--r--modules/extra/ldap.cpp2
-rw-r--r--modules/extra/mysql.cpp4
-rw-r--r--modules/extra/regex_pcre2.cpp2
-rw-r--r--modules/extra/regex_tre.cpp2
-rw-r--r--modules/extra/sqlite.cpp2
-rw-r--r--modules/extra/ssl_gnutls.cpp2
-rw-r--r--modules/extra/ssl_openssl.cpp2
-rw-r--r--modules/extra/xmlrpc.cpp2
8 files changed, 9 insertions, 9 deletions
diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp
index f8ef205a5..0ea09afb5 100644
--- a/modules/extra/ldap.cpp
+++ b/modules/extra/ldap.cpp
@@ -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()
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<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"))
diff --git a/modules/extra/regex_pcre2.cpp b/modules/extra/regex_pcre2.cpp
index e589846d5..03a93202b 100644
--- a/modules/extra/regex_pcre2.cpp
+++ b/modules/extra/regex_pcre2.cpp
@@ -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()
diff --git a/modules/extra/regex_tre.cpp b/modules/extra/regex_tre.cpp
index f7f095bb7..1d11e1e09 100644
--- a/modules/extra/regex_tre.cpp
+++ b/modules/extra/regex_tre.cpp
@@ -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()
diff --git a/modules/extra/sqlite.cpp b/modules/extra/sqlite.cpp
index 36bafae4c..8808c5847 100644
--- a/modules/extra/sqlite.cpp
+++ b/modules/extra/sqlite.cpp
@@ -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()
diff --git a/modules/extra/ssl_gnutls.cpp b/modules/extra/ssl_gnutls.cpp
index 5e9147d5c..97693eb49 100644
--- a/modules/extra/ssl_gnutls.cpp
+++ b/modules/extra/ssl_gnutls.cpp
@@ -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()
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp
index 50ac75466..a5c840518 100644
--- a/modules/extra/ssl_openssl.cpp
+++ b/modules/extra/ssl_openssl.cpp
@@ -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()
diff --git a/modules/extra/xmlrpc.cpp b/modules/extra/xmlrpc.cpp
index 7652fc4d3..fe574a319 100644
--- a/modules/extra/xmlrpc.cpp
+++ b/modules/extra/xmlrpc.cpp
@@ -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