Slightly more correct log message in index.php

This commit is contained in:
Mikael Nordfeldth 2016-02-26 14:53:12 +01:00
parent 52a3764ae4
commit ba51a696d2

View File

@ -93,9 +93,9 @@ function handleError($error)
return;
}
$logmsg = "PEAR error: " . $error->getMessage();
$logmsg = "Exception thrown: " . _ve($error->getMessage());
if ($error instanceof PEAR_Exception && common_config('site', 'logdebug')) {
$logmsg .= " : ". $error->toText();
$logmsg .= " PEAR: ". $error->toText();
}
// DB queries often end up with a lot of newlines; merge to a single line
// for easier grepability...