Browse Source

fix: missing argument in shouldFlush

Mikael Koli 4 years ago
parent
commit
65455334aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      redmail/log.py

+ 1 - 1
redmail/log.py

@@ -239,7 +239,7 @@ class MultiEmailHandler(_EmailHandlerMixin, BufferingHandler):
             # Only manual flushing
             # Only manual flushing
             return False
             return False
         else:
         else:
-            return super().shouldFlush()
+            return super().shouldFlush(record)
 
 
     def get_subject(self, records:List[LogRecord]):
     def get_subject(self, records:List[LogRecord]):
         "Get subject of the email"
         "Get subject of the email"