diff options
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/lib/BackgroundJob/GetSharedSecret.php | 4 | ||||
-rw-r--r-- | apps/federation/lib/Middleware/AddServerMiddleware.php | 2 | ||||
-rw-r--r-- | apps/federation/lib/SyncJob.php | 2 | ||||
-rw-r--r-- | apps/federation/lib/TrustedServers.php | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/federation/lib/BackgroundJob/GetSharedSecret.php b/apps/federation/lib/BackgroundJob/GetSharedSecret.php index 6f901062aca..30b04c5b123 100644 --- a/apps/federation/lib/BackgroundJob/GetSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/GetSharedSecret.php @@ -194,14 +194,14 @@ class GetSharedSecret extends Job { $status = -1; // There is no status code if we could not connect $this->logger->logException($e, [ 'message' => 'Could not connect to ' . $target, - 'level' => \OCP\Util::INFO, + 'level' => ILogger::INFO, 'app' => 'federation', ]); } catch (RingException $e) { $status = -1; // There is no status code if we could not connect $this->logger->logException($e, [ 'message' => 'Could not connect to ' . $target, - 'level' => \OCP\Util::INFO, + 'level' => ILogger::INFO, 'app' => 'federation', ]); } catch (\Exception $e) { diff --git a/apps/federation/lib/Middleware/AddServerMiddleware.php b/apps/federation/lib/Middleware/AddServerMiddleware.php index c6ac42bd7c3..09335a0cdff 100644 --- a/apps/federation/lib/Middleware/AddServerMiddleware.php +++ b/apps/federation/lib/Middleware/AddServerMiddleware.php @@ -72,7 +72,7 @@ class AddServerMiddleware extends Middleware { throw $exception; } $this->logger->logException($exception, [ - 'level' => \OCP\Util::ERROR, + 'level' => ILogger::ERROR, 'app' => $this->appName, ]); if ($exception instanceof HintException) { diff --git a/apps/federation/lib/SyncJob.php b/apps/federation/lib/SyncJob.php index 258d0f2fc9c..6eaaf13944d 100644 --- a/apps/federation/lib/SyncJob.php +++ b/apps/federation/lib/SyncJob.php @@ -50,7 +50,7 @@ class SyncJob extends TimedJob { if ($ex instanceof \Exception) { $this->logger->logException($ex, [ 'message' => "Error while syncing $url.", - 'level' => \OCP\Util::ERROR, + 'level' => ILogger::ERROR, 'app' => 'fed-sync', ]); } diff --git a/apps/federation/lib/TrustedServers.php b/apps/federation/lib/TrustedServers.php index eda77a79325..092279eb2b9 100644 --- a/apps/federation/lib/TrustedServers.php +++ b/apps/federation/lib/TrustedServers.php @@ -244,7 +244,7 @@ class TrustedServers { } catch (\Exception $e) { \OC::$server->getLogger()->logException($e, [ 'message' => 'No Nextcloud server.', - 'level' => \OCP\Util::DEBUG, + 'level' => ILogger::DEBUG, 'app' => 'federation', ]); return false; |