Lower error to warning

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2024-01-14 22:45:48 +01:00 committed by John Molakvoæ
parent 21042c3e0f
commit a60bf6a00d
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -115,7 +115,7 @@ class Manager implements IManager {
$endTime = microtime(true);
$duration = $endTime - $startTime;
if ($duration > 1) {
\OC::$server->get(LoggerInterface::class)->error(
\OC::$server->get(LoggerInterface::class)->warning(
'Dashboard widget {widget} took {duration} seconds to load.',
[
'widget' => $widget->getId(),