* exceptions get now logged to Apache error_log again

This commit is contained in:
Ralf Becker 2010-11-04 11:33:40 +00:00
parent e7b5cb1dbc
commit 7811a03067

View File

@ -1468,7 +1468,7 @@ function _egw_log_exception(Exception $e,&$headline=null)
} }
// log exception to error log, if not running as cli, // log exception to error log, if not running as cli,
// which outputs the error_log to stderr and therefore output it twice to the user // which outputs the error_log to stderr and therefore output it twice to the user
if(!isset($_SERVER['HTTP_HOST']) || $GLOBALS['egw_info']['flags']['no_exception_handler'] == 'cli') if(isset($_SERVER['HTTP_HOST']) || $GLOBALS['egw_info']['flags']['no_exception_handler'] !== 'cli')
{ {
error_log($headline.': '.$e->getMessage()); error_log($headline.': '.$e->getMessage());
foreach(explode("\n",$e->getTraceAsString()) as $line) error_log($line); foreach(explode("\n",$e->getTraceAsString()) as $line) error_log($line);