diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-04 05:15:41 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-04 05:15:41 +0000 |
commit | 753b69991603e6aa2c33d7a6e953141b85caf878 (patch) | |
tree | d6dff58f48a6639da95f3f8cd9648f0eba478468 /index.php | |
parent | dcdf47cff2dc62996df042aa0e5d19948b265686 (diff) | |
parent | 7279554681da728deb74a87230de3a1021182f71 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -43,7 +43,11 @@ function handleError($error) return; } - common_log(LOG_ERR, "PEAR error: " . $error->getMessage()); + $logmsg = "PEAR error: " . $error->getMessage(); + if(common_config('site', 'logdebug')) { + $logmsg .= " : ". $error->getDebugInfo(); + } + common_log(LOG_ERR, $logmsg); $msg = sprintf(_('The database for %s isn\'t responding correctly, '. 'so the site won\'t work properly. '. 'The site admins probably know about the problem, '. |