From 4daf0d4e486170b9ea70f147c38332f12b222c39 Mon Sep 17 00:00:00 2001 From: Subham Agarwal <177206897+subham1099@users.noreply.github.com> Date: Mon, 30 Sep 2024 06:49:08 +0000 Subject: [PATCH 1/2] fix: rename function `AxiomProcessor._flush` to `AxiomProcessor.flush` --- src/axiom_py/structlog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axiom_py/structlog.py b/src/axiom_py/structlog.py index 41c0285..f307ff7 100644 --- a/src/axiom_py/structlog.py +++ b/src/axiom_py/structlog.py @@ -25,7 +25,7 @@ def __init__(self, client: Client, dataset: str, interval=1): atexit.register(self._flush) - def _flush(self): + def flush(self): self.last_run = time.monotonic() if len(self.buffer) == 0: return From ca61aa3174f84fd827302459fac2c7dd2f8f42f8 Mon Sep 17 00:00:00 2001 From: Subham Agarwal <177206897+subham1099@users.noreply.github.com> Date: Mon, 30 Sep 2024 06:50:24 +0000 Subject: [PATCH 2/2] fix: rename function `AxiomProcessor._flush` to `AxiomProcessor.flush` --- src/axiom_py/structlog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axiom_py/structlog.py b/src/axiom_py/structlog.py index f307ff7..e435544 100644 --- a/src/axiom_py/structlog.py +++ b/src/axiom_py/structlog.py @@ -23,7 +23,7 @@ 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): self.last_run = time.monotonic()