summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 16:19:59 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 16:19:59 +0000
commit2b8773a6bad22080ebe34a1f9fc81a7ae75ed6f2 (patch)
tree81103683432e7226f85b6cef2803de001fcc796d /src/modules
parent51af6cbf2fa0e81ca96dd4ff0667b034260894b2 (diff)
Remove calls to deprecated InspIRCd::Log(), thanks danieldg for reporting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9327 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_testclient.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/extra/m_testclient.cpp b/src/modules/extra/m_testclient.cpp
index f439ee38b..0bad0466e 100644
--- a/src/modules/extra/m_testclient.cpp
+++ b/src/modules/extra/m_testclient.cpp
@@ -48,11 +48,11 @@ public:
if(foo.Send())
{
- ServerInstance->Log(DEBUG, "Sent query, got given ID %lu", foo.id);
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "Sent query, got given ID %lu", foo.id);
}
else
{
- ServerInstance->Log(DEBUG, "SQLrequest failed: %s", foo.error.Str());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "SQLrequest failed: %s", foo.error.Str());
}
}
}
@@ -61,7 +61,7 @@ public:
{
if(strcmp(SQLRESID, request->GetId()) == 0)
{
- ServerInstance->Log(DEBUG, "Got SQL result (%s)", request->GetId());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "Got SQL result (%s)", request->GetId());
SQLresult* res = (SQLresult*)request;
@@ -69,33 +69,33 @@ public:
{
if(res->Cols())
{
- ServerInstance->Log(DEBUG, "Got result with %d rows and %d columns", res->Rows(), res->Cols());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "Got result with %d rows and %d columns", res->Rows(), res->Cols());
for (int r = 0; r < res->Rows(); r++)
{
- ServerInstance->Log(DEBUG, "Row %d:", r);
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "Row %d:", r);
for(int i = 0; i < res->Cols(); i++)
{
- ServerInstance->Log(DEBUG, "\t[%s]: %s", res->ColName(i).c_str(), res->GetValue(r, i).d.c_str());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "\t[%s]: %s", res->ColName(i).c_str(), res->GetValue(r, i).d.c_str());
}
}
}
else
{
- ServerInstance->Log(DEBUG, "%d rows affected in query", res->Rows());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "%d rows affected in query", res->Rows());
}
}
else
{
- ServerInstance->Log(DEBUG, "SQLrequest failed: %s", res->error.Str());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "SQLrequest failed: %s", res->error.Str());
}
return SQLSUCCESS;
}
- ServerInstance->Log(DEBUG, "Got unsupported API version string: %s", request->GetId());
+ ServerInstance->Logs->Log("m_testclient.so", DEBUG, "Got unsupported API version string: %s", request->GetId());
return NULL;
}