Skip to content
Snippets Groups Projects
Commit 5bd930ff authored by Michael Hamann's avatar Michael Hamann
Browse files

Write the debug log only when debugging is enabled

The debug log isn't automatically cleaned so don't write to it when
debugging is disabled and thus nobody is aware that debug output might
be generated.
parent 3cf90024
No related branches found
No related tags found
Loading
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment