From 35ef87d58deed761e953a8acf6310ad659f22df0 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 23 Jul 2026 15:05:52 -0400 Subject: [PATCH] perf(log): do not attempt interpolation if no placeholders Signed-off-by: Josh --- lib/private/Log.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/Log.php b/lib/private/Log.php index 64b052e361c72..f401339c0f7fb 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -413,6 +413,10 @@ public function getLogPath():string { * user-defined - key. */ private function interpolateMessage(array $context, string $message, string $messageKey = 'message'): array { + if (!str_contains($message, '{')) { + return array_merge($context, [$messageKey => $message]); + } + $replace = []; $usedContextKeys = []; foreach ($context as $key => $val) {