summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqllog.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:26:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:26:07 +0000
commite84bf9f3ec5a60078c32b272d3d7885c0708c544 (patch)
tree99fc8f4b4d7bede49e91f27abcdee6fb8c4fe6f4 /src/modules/extra/m_sqllog.cpp
parentd17465716790010b6e3221f9ce49272110276ccf (diff)
Change to using Instance->Log (InspIRCd::Log) rather than log() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqllog.cpp')
-rw-r--r--src/modules/extra/m_sqllog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp
index 4db8fe6f0..ce4b23cb4 100644
--- a/src/modules/extra/m_sqllog.cpp
+++ b/src/modules/extra/m_sqllog.cpp
@@ -97,7 +97,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
}
@@ -114,7 +114,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
@@ -146,7 +146,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
}
@@ -162,7 +162,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
case FIND_HOST:
@@ -194,7 +194,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
}
@@ -211,7 +211,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
break;
case INSERT_LOGENTRY:
@@ -237,7 +237,7 @@ class QueryInfo
}
else
{
- //log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ //ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
}
break;
@@ -264,7 +264,7 @@ class ModuleSQLLog : public Module
SQLModule = Srv->FindFeature("SQL");
if (!SQLModule)
- log(DEFAULT,"WARNING: m_sqllog.so could not initialize because an SQL module is not loaded. Load the module and rehash your server.");
+ ServerInstance->Log(DEFAULT,"WARNING: m_sqllog.so could not initialize because an SQL module is not loaded. Load the module and rehash your server.");
return (SQLModule);
}
@@ -290,20 +290,20 @@ class ModuleSQLLog : public Module
virtual char* OnRequest(Request* request)
{
- log(DEBUG,"OnRequest in m_sqllog.so");
+ ServerInstance->Log(DEBUG,"OnRequest in m_sqllog.so");
if(strcmp(SQLRESID, request->GetId()) == 0)
{
SQLresult* res;
std::map<unsigned long, QueryInfo*>::iterator n;
res = static_cast<SQLresult*>(request);
- log(DEBUG, "Got SQL result (%s) with ID %lu", res->GetId(), res->id);
+ ServerInstance->Log(DEBUG, "Got SQL result (%s) with ID %lu", res->GetId(), res->id);
n = active_queries.find(res->id);
if (n != active_queries.end())
{
- log(DEBUG,"This is an active query");
+ ServerInstance->Log(DEBUG,"This is an active query");
n->second->Go(res);
std::map<unsigned long, QueryInfo*>::iterator n = active_queries.find(res->id);
@@ -325,11 +325,11 @@ class ModuleSQLLog : public Module
QueryInfo* i = new QueryInfo(nick, host, req.id, category);
i->qs = FIND_SOURCE;
active_queries[req.id] = i;
- log(DEBUG,"Active query id %d",req.id);
+ ServerInstance->Log(DEBUG,"Active query id %d",req.id);
}
else
{
- log(DEBUG, "SQLrequest failed: %s", req.error.Str());
+ ServerInstance->Log(DEBUG, "SQLrequest failed: %s", req.error.Str());
}
/*long nickid = InsertNick(nick);