Skip to content

Commit

Permalink
Merge pull request #145 from subham1099/main
Browse files Browse the repository at this point in the history
Rename function `AxiomProcessor._flush` to `AxiomProcessor.flush`
  • Loading branch information
bahlo authored Sep 30, 2024
2 parents 80e5f2d + ca61aa3 commit 15c956e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/axiom_py/structlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15c956e

Please sign in to comment.