def flush(self):
    'Flush this BufferingHandler to all the delayed handlers.'
    self.acquire()
    try:
        for handler in self.delayed_handlers:
            for record in self.buffer:
                if (record.levelno >= handler.level):
                    handler.handle(record)
        self.buffer = []
    finally:
        self.release()
Flush this BufferingHandler to all the delayed handlers.
def flush(self):
    
    self.acquire()
    try:
        for handler in self.delayed_handlers:
            for record in self.buffer:
                if (record.levelno >= handler.level):
                    handler.handle(record)
        self.buffer = []
    finally:
        self.release()