Skip to content
Snippets Groups Projects
Commit e3089207 authored by Sascha Egerer's avatar Sascha Egerer Committed by Christian Kuhn
Browse files

[BUGFIX] Interpolate log messages in InMemoryLogWriter

Log messages may have placeholders that must be interpolated
based on the context provided to the message.

Resolves: #98653
Releases: main, 11.5
Change-Id: I953bb41ba52599b7f65328027fe9e905ef5d35d0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76177


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 0d2555cf
Branches
Tags
No related merge requests found
......@@ -66,7 +66,7 @@ class InMemoryLogWriter extends AbstractWriter
return $this;
}
self::$log[] = $record;
self::$log[] = (clone $record)->setMessage($this->interpolate($record->getMessage(), $record->getData()));
return $this;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment