diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-25 19:00:26 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-25 19:00:26 +0000 |
commit | 28b4e85af0e230e8399d8cc2098ed6150afdead6 (patch) | |
tree | 1560f257c674e4e3f8ab4a588fac3bf59377a9db /index.php | |
parent | 0eb77e67532cbbdfd1f099303ae8e1614296b87a (diff) | |
parent | c96572c0909793fd1f38def21f2577e13d98766d (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -48,7 +48,14 @@ function handleError($error) $logmsg .= " : ". $error->getDebugInfo(); } common_log(LOG_ERR, $logmsg); - if ($error instanceof DB_DataObject_Error) { + if(common_config('site', 'logdebug')) { + $bt = $error->getBacktrace(); + foreach ($bt as $line) { + common_log(LOG_ERR, $line); + } + } + if ($error instanceof DB_DataObject_Error || + $error instanceof DB_Error) { $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, '. |