summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-03-24 13:22:44 +0100
committerJoas Schilling <coding@schilljs.com>2021-03-24 13:22:44 +0100
commit02c011c4f7d543c1835ca293ae29e5023fe6d7cb (patch)
tree0056df36c4c1e0a7c8c9ae073d50370cd412b445 /lib/public
parent057c72d38b99b17ca885e07256f28346e109b995 (diff)
downloadnextcloud-server-02c011c4f7d543c1835ca293ae29e5023fe6d7cb.tar.gz
nextcloud-server-02c011c4f7d543c1835ca293ae29e5023fe6d7cb.zip
Make debugging easier which header is being set
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Response.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index fc3ee739773..45ae8743012 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,
+ ]);
}
}