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

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
pull/55369/head
Carl Schwan 11 months ago
parent aadf842039
commit 93b258317d
No known key found for this signature in database
GPG Key ID: 02325448204E452A
  1. 2
      apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php

@ -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]
);

Loading…
Cancel
Save