Log: fix logging the right exception backtrace in all cases

This commit is contained in:
Benjamin Renard 2023-02-23 11:58:19 +01:00
parent 8ff2fe663d
commit f13e364d06
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -369,7 +369,7 @@ class Log {
self :: error(
"%s:\n%s\n## %s:%d : %s",
($prefix?$prefix:"An exception occured"),
self::get_debug_backtrace_context(1),
$exception->getTraceAsString(),
$exception->getFile(), $exception->getLine(),
$exception->getMessage());
}