From d6e1b92059688c8b59df0eedccfb16781d193591 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 27 Oct 2012 08:12:04 -0400 Subject: Add a module log type --- modules/database/db_sql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/database/db_sql.cpp') diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index acc59b668..48c813a3c 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -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(); } } } -- cgit