v9.36.0: Bug for call stack in logging and ErrorMessage class

This commit is contained in:
Clemens Schwaighofer
2025-11-27 18:08:15 +09:00
parent 9079d3120f
commit 3b1f8745c2
4 changed files with 92 additions and 22 deletions

View File

@@ -131,6 +131,7 @@ class ErrorMessage
// set a jump target
$this->setJumpTarget($jump_target['target'] ?? null, $jump_target['info'] ?? null, $level);
// write to log for abort/crash
$this->log->setErrorMessageCallSetErrorMsg();
switch ($level) {
case 'notice':
$this->log->notice($message ?? $str, array_merge([
@@ -210,6 +211,7 @@ class ErrorMessage
?bool $log_error = null,
?bool $log_warning = null,
): void {
$this->log->setErrorMessageCallSetMessage();
$this->setErrorMsg(
$error_id ?? '',
$level,