From 02c011c4f7d543c1835ca293ae29e5023fe6d7cb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 24 Mar 2021 13:22:44 +0100 Subject: [PATCH] Make debugging easier which header is being set Signed-off-by: Joas Schilling --- lib/public/AppFramework/Http/Response.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php index fc3ee73977..45ae874301 100644 --- a/lib/public/AppFramework/Http/Response.php +++ b/lib/public/AppFramework/Http/Response.php @@ -211,9 +211,9 @@ class Response { $config = \OC::$server->get(IConfig::class); if ($config->getSystemValueBool('debug', false)) { - \OC::$server->get(LoggerInterface::class)->error( - 'Setting a custom header on a 204 or 304 is not supported' - ); + \OC::$server->get(LoggerInterface::class)->error('Setting custom header on a 204 or 304 is not supported (Header: {header})', [ + 'header' => $name, + ]); } }