summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-04 11:05:58 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-04 11:05:58 -0800
commit8cc19b90eeb7920b2cfe79959038c5e25f40930a (patch)
tree8608ad304d57f7395ae4bf7b58ed4be7eaa0b6a1 /index.php
parentcf4e1872ab8109ea6a3230e43cc70899a17dd075 (diff)
parenta7efd4ff556bbf6bafcfc81db758ab192b8802ad (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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index 7f580b836..dae1ae751 100644
--- a/index.php
+++ b/index.php
@@ -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, '.