diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index ef926ce988..beafc888c4 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -780,7 +780,7 @@ class Manager implements IManager { return false; } } catch (\Exception $e) { - $this->logger->error('Share notification mail could not be send: ' . $e->getMessage()); + $this->logger->logException($e, ['message' => 'Share notification mail could not be send']); return false; }