]> git.donarmstrong.com Git - infobot.git/blobdiff - src/logger.pl
- renamed Factoids/Misc.pl to Factoids/Core.pl
[infobot.git] / src / logger.pl
index 2ba41506fcbfc2aba6bd0c0711dda63363d7dc4c..f550962a6041a6b428fdc0543856d2d865ce55a3 100644 (file)
@@ -282,9 +282,9 @@ sub status {
 
     if (&IsParam("VERBOSITY")) {
        if ($statcountfix) {
-           printf $_red."!%5d!".$ob." ", $statcount;
+           printf $_red."!%6d!".$ob." ", $statcount;
        } else {
-           printf $_green."[%5d]".$ob." ", $statcount;
+           printf $_green."[%6d]".$ob." ", $statcount;
        }
 
        # three uberstabs to Derek Moeller.
@@ -373,4 +373,12 @@ sub closeSQLDebug {
     &status("Closed SQL Debug file: $param{'SQLDebug'}");
 }
 
+sub SQLDebug {
+    return unless (&IsParam("SQLDebug"));
+
+    return unless (fileno SQLDEBUG);
+
+    print SQLDEBUG $_[0]."\n";
+}
+
 1;