mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 18:03:46 +00:00
Refactor dynamic App::getLogger() to static DI::logger()
This commit is contained in:
parent
34ba7f441d
commit
44bf0343e2
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\ConfigFileLoader;
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
@ -99,6 +100,6 @@ function phpmailer_emailer_send_prepare(App $a, array &$b)
|
|||
|
||||
$b['sent'] = $mail->send();
|
||||
} catch (Exception $e) {
|
||||
$a->getLogger()->error('PHPMailer error', ['ErrorInfo' => $mail->ErrorInfo, 'code' => $e->getCode(), 'message' => $e->getMessage()]);
|
||||
DI::logger()->error('PHPMailer error', ['ErrorInfo' => $mail->ErrorInfo, 'code' => $e->getCode(), 'message' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue