File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ private function send(?RawMessage $message): void
9696 } catch (TransportExceptionInterface $ exception ) {
9797 $ exception = new MailerTransportException ($ exception ->getMessage ());
9898 $ exception ->appendDebug ($ exception ->getDebug ());
99+ if ($ logger = $ this ->container ->get ('logger ' )) {
100+ $ logger ->error ($ exception ->getMessage (), [
101+ 'exception ' => $ exception ,
102+ ]);
103+ return ;
104+ }
99105 throw $ exception ;
100106 }
101107 }
Original file line number Diff line number Diff line change 11901190 UsernameChangedEmailFactory::class => new Reference (UsernameChangedEmailFactory::class),
11911191 PasswordChangedEmailFactory::class => new Reference (PasswordChangedEmailFactory::class),
11921192 VerifyEmailFactory::class => new Reference (VerifyEmailFactory::class),
1193+ 'logger ' => new Reference ('logger ' , ContainerInterface::IGNORE_ON_INVALID_REFERENCE )
11931194 ]),
11941195 '' , // injected in dependency injection
11951196 ]
You can’t perform that action at this time.
0 commit comments