From 4fbe7f49f1873a00086778d3eda6953a72b342f9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 16 May 2014 09:10:01 +0000 Subject: [PATCH] logging for exceptions now also request-method and user-agent --- phpgwapi/inc/common_functions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 409f7f6830..579db61f7f 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1580,8 +1580,9 @@ function _egw_log_exception(Exception $e,&$headline=null) { error_log($headline.' ('.get_class($e).'): '.$e->getMessage()); foreach(explode("\n",$e->getTraceAsString()) as $line) error_log($line); - error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid'].', URL='. - ($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); + error_log('# Instance='.$GLOBALS['egw_info']['user']['domain'].', User='.$GLOBALS['egw_info']['user']['account_lid']. + ', Request='.$_SERVER['REQUEST_METHOD'].' '.($_SERVER['HTTPS']?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']. + ', User-agent='.$_SERVER['HTTP_USER_AGENT']); } }