logging for exceptions now also request-method and user-agent

This commit is contained in:
Ralf Becker 2014-05-16 09:09:38 +00:00
parent 281863ac29
commit c3b7018916

View File

@ -1610,8 +1610,9 @@ function _egw_log_exception(Exception $e,&$headline=null)
{ {
error_log($line); error_log($line);
} }
error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid'].', URL='. error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid'].
($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ', Request='.$_SERVER['REQUEST_METHOD'].' '.($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].
', User-agent='.$_SERVER['HTTP_USER_AGENT']);
} }
} }