From: Andy Xheli Date: Mon, 29 Aug 2022 18:27:12 +0000 (-0500) Subject: Makes untrusted domain error on info X-Git-Tag: v24.0.7rc1~33^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b5f330fc943897b6c125211c4bef876b535d93cf;p=nextcloud-server.git Makes untrusted domain error on info Signed-off-by: Andy Xheli Since https://github.com/nextcloud/server/commit/e6d9ef2e38daffcab808eaa41b18ab16c6253b97 was applied logs get filled up with Trusted domain error. "X.X.X.X tried to access using "X.X.X.X" as host alot of users missed important errors do tohttps://github.com/nextcloud/server/commit/e6d9ef2e38daffcab808eaa41b18ab16c6253b97 please see https://github.com/nextcloud/server/issues/32599 This should fix. https://github.com/nextcloud/server/issues/32599#event-7281164903 Signed-off-by: Andy Xheli --- diff --git a/lib/base.php b/lib/base.php index b601e4b19f2..198a8706192 100644 --- a/lib/base.php +++ b/lib/base.php @@ -795,7 +795,7 @@ class OC { if (!$isScssRequest) { http_response_code(400); - \OC::$server->getLogger()->warning( + \OC::$server->getLogger()->info( 'Trusted domain error. "{remoteAddress}" tried to access using "{host}" as host.', [ 'app' => 'core',