Extensions use \MailSo\Log\Inherit

This commit is contained in:
the-djmaze 2024-03-31 21:02:05 +02:00
parent c4acb26758
commit a424c6a52a
5 changed files with 13 additions and 38 deletions

View file

@ -2,10 +2,7 @@
class NextcloudContactsSuggestions implements \RainLoop\Providers\Suggestions\ISuggestions
{
/**
* @var \MailSo\Log\Logger
*/
private $oLogger = null;
use \MailSo\Log\Inherit;
private bool $ignoreSystemAddressbook;
@ -75,16 +72,9 @@ class NextcloudContactsSuggestions implements \RainLoop\Providers\Suggestions\IS
}
catch (\Exception $oException)
{
if ($this->oLogger) {
$this->oLogger->WriteException($oException);
}
$this->logException($oException);
}
return [];
}
public function SetLogger(\MailSo\Log\Logger $oLogger)
{
$this->oLogger = $oLogger;
}
}