diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-01-13 13:26:38 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-01-13 13:26:38 +0100 |
commit | c7408a6326fe814aaf38f4b58fbe4ed55c025339 (patch) | |
tree | 365f8d6a7f81127263c979650eb31ac7cc9a3d22 | |
parent | 91df343accb0d06c694dcd613835297cf18867b4 (diff) | |
download | rpg-c7408a6326fe814aaf38f4b58fbe4ed55c025339.tar.gz rpg-c7408a6326fe814aaf38f4b58fbe4ed55c025339.tar.bz2 |
better logging for objects and arrays in dbglog()
darcs-hash:20090113122638-7ad00-6bc9dc3dd4120b5a1551b50d97ce8529619819ce.gz
-rw-r--r-- | inc/infoutils.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 56526ac54..f0a191bbe 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -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){ |