mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 16:38:39 +01:00
* exceptions get now logged to Apache error_log again
This commit is contained in:
parent
e7b5cb1dbc
commit
7811a03067
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user