1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 02:06:37 +02:00

Show the SQL service name in the db_sql error message.

This should help users diagnose issues easier.
This commit is contained in:
Sadie Powell
2023-09-05 00:21:31 +01:00
parent 0a3ddef315
commit ca2209aaed
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class DBSQL : public Module, public Pipe
if (last_warn + 300 < Anope::CurTime)
{
last_warn = Anope::CurTime;
Log(this) << "db_sql: Unable to execute query, is SQL configured correctly?";
Log(this) << "db_sql: Unable to execute query, is SQL (" << this->sql.GetServiceName() << ") configured correctly?";
}
}
else if (!Anope::Quitting)
@@ -174,7 +174,7 @@ class DBSQL : public Module, public Pipe
{
if (!this->sql)
{
Log(this) << "Unable to load databases, is SQL configured correctly?";
Log(this) << "Unable to load databases, is SQL (" << this->sql.GetServiceName() << ") configured correctly?";
return EVENT_CONTINUE;
}