aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
-rw-r--r--src/modules/extra/m_mysql.cpp6
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;
}