File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 55use Illuminate \Contracts \Debug \ExceptionHandler as ExceptionHandlerContract ;
66use Illuminated \Console \Log \Formatter ;
77use Illuminated \Console \Log \HtmlFormatter ;
8+ use Monolog \Handler \DeduplicationHandler ;
89use Monolog \Handler \MandrillHandler ;
910use Monolog \Handler \NativeMailerHandler ;
1011use Monolog \Handler \RotatingFileHandler ;
@@ -66,6 +67,9 @@ private function getLogHandlers()
6667
6768 $ mailerHandler = $ this ->getMailerHandler ();
6869 if (!empty ($ mailerHandler )) {
70+ if ($ this ->getNotificationDeduplication ()) {
71+ $ mailerHandler = new DeduplicationHandler ($ mailerHandler , null , $ this ->getNotificationLevel ());
72+ }
6973 $ handlers [] = $ mailerHandler ;
7074 }
7175
@@ -200,6 +204,11 @@ protected function getNotificationLevel()
200204 return Logger::NOTICE ;
201205 }
202206
207+ protected function getNotificationDeduplication ()
208+ {
209+ return false ;
210+ }
211+
203212 protected function icLogger ()
204213 {
205214 return $ this ->icLogger ;
You can’t perform that action at this time.
0 commit comments