]> git.donarmstrong.com Git - infobot.git/blobdiff - src/logger.pl
- renamed Factoids/Misc.pl to Factoids/Core.pl
[infobot.git] / src / logger.pl
index 5601b91447bf6a7f513e3a380d88d77e30f308e0..f550962a6041a6b428fdc0543856d2d865ce55a3 100644 (file)
@@ -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;