diff options
author | Joas Schilling <coding@schilljs.com> | 2023-11-13 09:49:04 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-11-13 12:45:35 +0100 |
commit | a5684ea3d27bb5d6f7c16e2cbca7eff5d60c8615 (patch) | |
tree | f289003b2e0686745290187f7f6d7c71b90a05aa /lib/private/Log.php | |
parent | 36d370b2163ac2a98dbecf2400eb1300025b79b2 (diff) | |
download | nextcloud-server-a5684ea3d27bb5d6f7c16e2cbca7eff5d60c8615.tar.gz nextcloud-server-a5684ea3d27bb5d6f7c16e2cbca7eff5d60c8615.zip |
fix(log): Log exception class when message is empty
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r-- | lib/private/Log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php index d6750491d92..1784114911f 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -344,7 +344,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']); |