diff options
| author | 2022-12-18 13:43:33 +0000 | |
|---|---|---|
| committer | 2022-12-18 13:43:33 +0000 | |
| commit | d8b4414ee18be69eb7c6c491587e4895dc995fac (patch) | |
| tree | 5aebcbacc529d29c622974df798f4aa42d28f518 /src/modules/extra/m_mysql.cpp | |
| parent | Update /MOTD to match /OPERMOTD. (diff) | |
| download | inspircd++-d8b4414ee18be69eb7c6c491587e4895dc995fac.tar.gz inspircd++-d8b4414ee18be69eb7c6c491587e4895dc995fac.tar.bz2 inspircd++-d8b4414ee18be69eb7c6c491587e4895dc995fac.zip | |
Rework the levels things are logged at to make more sense.
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 9addb1aeb..dd2125d0b 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -331,7 +331,7 @@ public: unsigned int port = static_cast<unsigned int>(config->getUInt("port", 3306, 1, 65535)); if (!mysql_real_connect(connection, host.c_str(), user.c_str(), pass.c_str(), dbname.c_str(), port, nullptr, CLIENT_IGNORE_SIGPIPE)) { - ServerInstance->Logs.Normal(MODNAME, "Unable to connect to the %s MySQL server: %s", + ServerInstance->Logs.Error(MODNAME, "Unable to connect to the %s MySQL server: %s", GetId().c_str(), mysql_error(connection)); return false; } @@ -340,7 +340,7 @@ public: const std::string charset = config->getString("charset"); if (!charset.empty() && mysql_set_character_set(connection, charset.c_str())) { - ServerInstance->Logs.Normal(MODNAME, "Could not set character set for %s to \"%s\": %s", + ServerInstance->Logs.Error(MODNAME, "Could not set character set for %s to \"%s\": %s", GetId().c_str(), charset.c_str(), mysql_error(connection)); return false; } @@ -349,7 +349,7 @@ public: const std::string initialquery = config->getString("initialquery"); if (!initialquery.empty() && mysql_real_query(connection, initialquery.data(), initialquery.length())) { - ServerInstance->Logs.Normal(MODNAME, "Could not execute initial query \"%s\" for %s: %s", + ServerInstance->Logs.Error(MODNAME, "Could not execute initial query \"%s\" for %s: %s", initialquery.c_str(), name.c_str(), mysql_error(connection)); return false; } |
