N°4261 - code review with @PirGoif

This commit is contained in:
bruno-ds
2021-09-21 16:37:58 +02:00
parent d9ccac3aea
commit c306c6e30d
3 changed files with 13 additions and 4 deletions

View File

@@ -1157,6 +1157,14 @@ class ExceptionLog extends LogAPI
$aContext['exception class'] = get_class($oException);
}
if (empty($aContext['file'])) {
$aContext['file'] = $oException->getFile();
}
if (empty($aContext['line'])) {
$aContext['line'] =$oException->getLine();
}
self::Log($sLevel, $oException->getMessage(), get_class($oException), $aContext);
}