We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d370b commit a5684eaCopy full SHA for a5684ea
lib/private/Log.php
@@ -344,7 +344,7 @@ public function logException(Throwable $exception, array $context = []) {
344
unset($data['app']);
345
unset($data['level']);
346
$data = array_merge($serializer->serializeException($exception), $data);
347
- $data = $this->interpolateMessage($data, $context['message'] ?? '--', 'CustomMessage');
+ $data = $this->interpolateMessage($data, isset($context['message']) && $context['message'] !== '' ? $context['message'] : ('Exception thrown: ' . get_class($exception)), 'CustomMessage');
348
349
350
array_walk($context, [$this->normalizer, 'format']);
0 commit comments