Skip to content

Commit

Permalink
L-110 Continue flushing after shutdown until pipe is empty (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Oct 12, 2023
1 parent b24acd1 commit 24034a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logtail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
from .helpers import LogtailContext, DEFAULT_CONTEXT
from .formatter import LogtailFormatter

__version__ = '0.2.6'
__version__ = '0.2.7'

context = DEFAULT_CONTEXT
2 changes: 1 addition & 1 deletion logtail/flusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def step(self):
if response.status_code == 500 and getattr(response, "exception") != None:
print('Failed to send logs to Better Stack after {} retries: {}'.format(len(RETRY_SCHEDULE), response.exception))

if shutdown:
if shutdown and self.pipe.empty():
sys.exit(0)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup


VERSION = '0.2.6'
VERSION = '0.2.7'
ROOT_DIR = os.path.dirname(__file__)

REQUIREMENTS = [
Expand Down

0 comments on commit 24034a0

Please sign in to comment.