refactor: use DI-injected logger instead of Server::get

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This commit is contained in:
Carl Schwan 2025-10-02 11:19:07 +02:00
parent aadf842039
commit 93b258317d
No known key found for this signature in database
GPG key ID: 02325448204E452A

View file

@ -781,7 +781,7 @@ class CloudFederationProviderFiles implements ISignedCloudFederationProvider {
try {
$slaveService = Server::get(SlaveService::class);
} catch (\Throwable $e) {
Server::get(LoggerInterface::class)->error(
$this->logger->error(
$e->getMessage(),
['exception' => $e]
);