mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 12:30:40 -05:00
Merge pull request #41425 from nextcloud/backport/41406/stable26
[stable26] fix(log): Log exception class when message is empty
This commit is contained in:
commit
496a68dd41
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ class Log implements ILogger, IDataLogger {
|
|||
unset($data['app']);
|
||||
unset($data['level']);
|
||||
$data = array_merge($serializer->serializeException($exception), $data);
|
||||
$data = $this->interpolateMessage($data, $context['message'] ?? '--', 'CustomMessage');
|
||||
$data = $this->interpolateMessage($data, isset($context['message']) && $context['message'] !== '' ? $context['message'] : ('Exception thrown: ' . get_class($exception)), 'CustomMessage');
|
||||
|
||||
|
||||
array_walk($context, [$this->normalizer, 'format']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue