mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 21:49:43 -04:00
Merge pull request #34831 from nextcloud/bugfix/noid/dont-stop-loading-dashboards
Continue registering and loading other dashboard widgets when one fai…
This commit is contained in:
commit
8ee76c0d89
1 changed files with 7 additions and 4 deletions
|
|
@ -82,9 +82,10 @@ class Manager implements IManager {
|
|||
* we can not inject it. Thus the static call.
|
||||
*/
|
||||
\OC::$server->get(LoggerInterface::class)->critical(
|
||||
'Could not load lazy dashboard widget: ' . $e->getMessage(),
|
||||
['excepiton' => $e]
|
||||
'Could not load lazy dashboard widget: ' . $service['class'],
|
||||
['exception' => $e]
|
||||
);
|
||||
continue;
|
||||
}
|
||||
/**
|
||||
* Try to register the loaded reporter. Theoretically it could be of a wrong
|
||||
|
|
@ -98,9 +99,10 @@ class Manager implements IManager {
|
|||
* we can not inject it. Thus the static call.
|
||||
*/
|
||||
\OC::$server->get(LoggerInterface::class)->critical(
|
||||
'Could not register lazy dashboard widget: ' . $e->getMessage(),
|
||||
'Could not register lazy dashboard widget: ' . $service['class'],
|
||||
['exception' => $e]
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
@ -119,9 +121,10 @@ class Manager implements IManager {
|
|||
}
|
||||
} catch (Throwable $e) {
|
||||
\OC::$server->get(LoggerInterface::class)->critical(
|
||||
'Error during dashboard widget loading: ' . $e->getMessage(),
|
||||
'Error during dashboard widget loading: ' . $service['class'],
|
||||
['exception' => $e]
|
||||
);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$this->lazyWidgets = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue