1
0
mirror of https://github.com/anope/anope.git synced 2026-06-24 20:26:39 +02:00

Add a module log type

This commit is contained in:
Adam
2012-10-27 08:12:04 -04:00
parent bb5f4555dc
commit d6e1b92059
21 changed files with 75 additions and 59 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ class DBSQL : public Module, public Pipe
if (last_warn + 300 < Anope::CurTime)
{
last_warn = Anope::CurTime;
Log() << "db_sql: Unable to execute query, is SQL configured correctly?";
Log(this) << "db_sql: Unable to execute query, is SQL configured correctly?";
}
}
else if (!quitting)
@@ -146,7 +146,7 @@ class DBSQL : public Module, public Pipe
{
if (!this->sql)
{
Log() << "db_sql: Unable to load databases, is SQL configured correctly?";
Log(this) << "Unable to load databases, is SQL configured correctly?";
return EVENT_CONTINUE;
}
@@ -174,7 +174,7 @@ class DBSQL : public Module, public Pipe
}
catch (const ConvertException &)
{
Log() << "db_sql: Unable to convert id for object #" << j << " of type " << sb->GetName();
Log(this) << "Unable to convert id for object #" << j << " of type " << sb->GetName();
}
}
}