diff --git a/adafruit_logging.py b/adafruit_logging.py index dc3c652..28d1021 100644 --- a/adafruit_logging.py +++ b/adafruit_logging.py @@ -331,7 +331,7 @@ def emit(self, record: LogRecord) -> None: :param record: The record (message object) to be logged """ - self.stream.write(self.format(record)) + super().emit(record) self.stream.flush() @@ -431,8 +431,7 @@ def emit(self, record: LogRecord) -> None: and (self._backupCount > 0) ): self.doRollover() - self.stream.write(self.format(record)) - self.stream.flush() + super().emit(record) class NullHandler(Handler):