fix: Emit warning instead of info when WOIP request is denied

As discussed in #2685 the message s quite important when tring to fix
WOIP issues. The reasoning is that something fails from the perspective of an admin
and it should emit a warning.
Ofc. one could argue that the deny is expected bahaviour and should therefore emit only
an info. Yet I believe that it'd be beneficial overall to consider admins that
struggle to correctly set this up in that case.

Signed-off-by: moanos <julian-samuel@gebuehr.net>
This commit is contained in:
moanos 2023-10-27 10:45:01 +02:00
Родитель 35338a245f
Коммит a8b5cf9ca2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -112,7 +112,7 @@ class WOPIMiddleware extends Middleware {
return true;
}
$this->logger->info('WOPI request denied from ' . $userIp . ' as it does not match the configured ranges: ' . implode(', ', $allowedRanges));
$this->logger->warning('WOPI request denied from ' . $userIp . ' as it does not match the configured ranges: ' . implode(', ', $allowedRanges));
return false;
}
}