From d17465716790010b6e3221f9ce49272110276ccf Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 12:15:03 +0000 Subject: Now two types of log macro, log() and ilog(). log() assumes an InspIRCd object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqllog.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/modules/extra/m_sqllog.cpp') diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp index 4779e3cb2..4db8fe6f0 100644 --- a/src/modules/extra/m_sqllog.cpp +++ b/src/modules/extra/m_sqllog.cpp @@ -66,8 +66,6 @@ class QueryInfo // Nothing here and not sent yet SQLrequest req = SQLreq(MyMod, SQLModule, dbid, "", ""); - log(DEBUG,"State: %d",qs); - switch (qs) { case FIND_SOURCE: @@ -99,7 +97,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; } @@ -116,7 +114,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; @@ -148,7 +146,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; } @@ -164,7 +162,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; case FIND_HOST: @@ -196,7 +194,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; } @@ -213,7 +211,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } break; case INSERT_LOGENTRY: @@ -239,7 +237,7 @@ class QueryInfo } else { - log(DEBUG, "SQLrequest failed: %s", req.error.Str()); + //log(DEBUG, "SQLrequest failed: %s", req.error.Str()); } } break; -- cgit v1.2.3