diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 11:05:58 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 11:05:58 -0800 |
commit | 8cc19b90eeb7920b2cfe79959038c5e25f40930a (patch) | |
tree | 8608ad304d57f7395ae4bf7b58ed4be7eaa0b6a1 /index.php | |
parent | cf4e1872ab8109ea6a3230e43cc70899a17dd075 (diff) | |
parent | a7efd4ff556bbf6bafcfc81db758ab192b8802ad (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, '. |