]> git.donarmstrong.com Git - infobot.git/blobdiff - src/logger.pl
was opening sql debug file for read, not write. typo
[infobot.git] / src / logger.pl
index dfb64e01b572a6e22bb1714716e23a8afe97fab2..cd94341d9d8a366e5fd7e33c04cd21fb05f2aef3 100644 (file)
@@ -315,7 +315,7 @@ sub status {
 }
 
 sub openSQLDebug {
-    if (!open(SQLDEBUG, $param{'SQLDebug'})) {
+    if (!open(SQLDEBUG, ">>$param{'SQLDebug'}")) {
        &ERROR("cannot open $param{'SQLDebug'}...");
        delete $param{'SQLDebug'};
        return 0;