Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
typo and direct cleaning into gelf_message variable
  • Loading branch information
MaKeG0 committed Feb 6, 2024
1 parent e785903 commit 1d20fe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions asyncgelf/asyncgelf.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ async def http_handler(self, message, timestamp: Optional = None):

if len(messages) > 1:
# Remove the last "\r\n" from bulk_message
bulk_message = bulk_message.rstrip("\r\n")
gelf_message = bulk_messages
gelf_message = bulk_messages.rstrip("\r\n")
else:
# Dumping the gelf_message dictionary to a JSON string
gelf_message = json.dumps(gelf_message)
Expand Down

0 comments on commit 1d20fe2

Please sign in to comment.