Adding exception source file and line in digest message
Publish PHP Package / docker (push) Successful in 7s
Details
Publish PHP Package / docker (push) Successful in 7s
Details
This commit is contained in:
parent
654c11f8d9
commit
4dc8093881
|
@ -22,6 +22,10 @@ function _gamectl_exception_handler($e)
|
|||
//let's filter out too stack traces which are printed anyway
|
||||
foreach($lines as $idx => $line)
|
||||
{
|
||||
if($idx === 0)
|
||||
{
|
||||
$line = 'Exception in ' . $e->getFile() . ':' . $e->getLine() . "\n" . $line;
|
||||
}
|
||||
if($idx > 0 && preg_match('~^#\d+\s+~', $line))
|
||||
continue;
|
||||
$digest .= $line . "\n";
|
||||
|
|
Loading…
Reference in New Issue