Skip to content
Snippets Groups Projects
Commit c7408a63 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

better logging for objects and arrays in dbglog()

darcs-hash:20090113122638-7ad00-6bc9dc3dd4120b5a1551b50d97ce8529619819ce.gz
parent 91df343a
No related branches found
No related tags found
No related merge requests found
......@@ -262,6 +262,10 @@ function dbg($msg,$hidden=false){
*/
function dbglog($msg){
global $conf;
if(is_object($msg) || is_array($msg)){
$msg = print_r($msg,true);
}
$file = $conf['cachedir'].'/debug.log';
$fh = fopen($file,'a');
if($fh){
......
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