Browse Source

fix: missing argument in shouldFlush

Mikael Koli 4 năm trước cách đây
mục cha
commit
65455334aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      redmail/log.py

+ 1 - 1
redmail/log.py

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