fix(log): Fix call to normalize function

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-10-24 16:00:28 +02:00
parent 44b4b4072b
commit 2ec7fa88cc
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -158,7 +158,7 @@ class Log implements ILogger, IDataLogger {
return; // no crash reporter, no listeners, we can stop for lower log level
}
array_walk($context, [$this->normalizer, 'format']);
$context = array_map($this->normalizer->format(...), $context);
$app = $context['app'] ?? 'no app in context';
$entry = $this->interpolateMessage($context, $message);