diff --git a/inc/infoutils.php b/inc/infoutils.php index ac6a0a84c99eca2abb29817e7a5326014b351999..d3c6f2918514ec2119e5fa01db679219a09d1383 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -304,6 +304,9 @@ function dbg($msg,$hidden=false){ */ function dbglog($msg,$header=''){ global $conf; + // The debug log isn't automatically cleaned thus only write it when + // debugging has been enabled by the user. + if($conf['allowdebug'] !== 1) return; if(is_object($msg) || is_array($msg)){ $msg = print_r($msg,true); }