From 59794cc3a4f8f0474739db1e4ed049c150d9c826 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 9 Oct 2021 08:43:32 +0200 Subject: [PATCH] output line and file of exception as trace not always contain it --- api/src/loader/exception.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/loader/exception.php b/api/src/loader/exception.php index 8b95ede10d..1e7c14d37e 100755 --- a/api/src/loader/exception.php +++ b/api/src/loader/exception.php @@ -71,6 +71,7 @@ function _egw_log_exception($e,&$headline=null) { error_log($headline.($e instanceof egw_exception_warning ? ': ' : ' ('.get_class($e).'): '). $e->getMessage().(!empty($e->details) ? ': '.$e->details : '')); + error_log('File: '.str_replace(EGW_SERVER_ROOT, '', $e->getFile()).', Line: '.$e->getLine()); foreach($trace as $line) { error_log($line); @@ -174,6 +175,7 @@ function egw_error_handler ($errno, $errstr, $errfile, $errline) { case E_RECOVERABLE_ERROR: case E_USER_ERROR: + error_log(__METHOD__."($errno, '$errstr', '$errfile', $errline)"); throw new ErrorException($errstr, $errno, 0, $errfile, $errline); case E_WARNING: