Skip to content

Commit 427b998

Browse files
committed
ICL: Deduplication time - added ability to override.
1 parent cc1a73a commit 427b998

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Loggable.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ private function getLogHandlers()
6868
$mailerHandler = $this->getMailerHandler();
6969
if (!empty($mailerHandler)) {
7070
if ($this->getNotificationDeduplication()) {
71-
$mailerHandler = new DeduplicationHandler($mailerHandler, null, $this->getNotificationLevel());
71+
$level = $this->getNotificationLevel();
72+
$time = $this->getNotificationDeduplicationTime();
73+
$mailerHandler = new DeduplicationHandler($mailerHandler, null, $level, $time);
7274
}
7375
$handlers[] = $mailerHandler;
7476
}
@@ -209,6 +211,11 @@ protected function getNotificationDeduplication()
209211
return false;
210212
}
211213

214+
protected function getNotificationDeduplicationTime()
215+
{
216+
return 60;
217+
}
218+
212219
protected function icLogger()
213220
{
214221
return $this->icLogger;

0 commit comments

Comments
 (0)