def emit(self, record):

        last_time = self.messages.get(record.msg, None)
        if last_time is None or time.time() - last_time > critical_error_timeout:
            super(SevereHandler, self).emit(record)
            self.messages[record.msg] = time.time()
Don't excessively emit the same message.
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/logger.py/SevereHandler.emit