From b5f330fc943897b6c125211c4bef876b535d93cf Mon Sep 17 00:00:00 2001 From: Andy Xheli Date: Mon, 29 Aug 2022 13:27:12 -0500 Subject: [PATCH] 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 --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.39.5