summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/SyncJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib/SyncJob.php')
-rw-r--r--apps/federation/lib/SyncJob.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/federation/lib/SyncJob.php b/apps/federation/lib/SyncJob.php
index 0aa1d61affb..23255f2a441 100644
--- a/apps/federation/lib/SyncJob.php
+++ b/apps/federation/lib/SyncJob.php
@@ -49,7 +49,11 @@ class SyncJob extends TimedJob {
protected function run($argument) {
$this->syncService->syncThemAll(function($url, $ex) {
if ($ex instanceof \Exception) {
- $this->logger->error("Error while syncing $url : " . $ex->getMessage(), ['app' => 'fed-sync']);
+ $this->logger->logException($ex, [
+ 'message' => "Error while syncing $url.",
+ 'level' => \OCP\Util::ERROR,
+ 'app' => 'fed-sync',
+ ]);
}
});
}