]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Fixes for sending pool
[mailer.git] / inc / functions.php
index b888b2779f474ac59860e01cd8ba69ad48b8ee9d..892f983c6b68cf48f9f2efaf2f0ea13bd039c959 100644 (file)
@@ -2303,9 +2303,9 @@ function merge_array ($array1, $array2) {
        die("</pre>");
 }
 // Debug message logger
        die("</pre>");
 }
 // Debug message logger
-function DEBUG_LOG ($message) {
+function DEBUG_LOG ($message, $force=false) {
        // Is debug mode enabled?
        // Is debug mode enabled?
-       if (isBooleanConstantAndTrue('DEBUG_MODE')) {
+       if ((isBooleanConstantAndTrue('DEBUG_MODE')) || ($force)) {
                // Log this message away
                $fp = fopen(PATH."inc/cache/debug.log", 'a') or mxchange_die("Cannot write logfile debug.log!");
                fwrite($fp, date("d.m.Y|H:i:s", time())."|{$message}\n");
                // Log this message away
                $fp = fopen(PATH."inc/cache/debug.log", 'a') or mxchange_die("Cannot write logfile debug.log!");
                fwrite($fp, date("d.m.Y|H:i:s", time())."|{$message}\n");