diff --git a/src/axiom_py/structlog.py b/src/axiom_py/structlog.py index 41c0285..e435544 100644 --- a/src/axiom_py/structlog.py +++ b/src/axiom_py/structlog.py @@ -23,9 +23,9 @@ def __init__(self, client: Client, dataset: str, interval=1): self.last_run = time.monotonic() self.interval = interval - atexit.register(self._flush) + atexit.register(self.flush) - def _flush(self): + def flush(self): self.last_run = time.monotonic() if len(self.buffer) == 0: return