Skip to content

sanitize non json conform message types#8

Open
jesusch wants to merge 2 commits intoisrael-fl:masterfrom
tvsquared:master
Open

sanitize non json conform message types#8
jesusch wants to merge 2 commits intoisrael-fl:masterfrom
tvsquared:master

Conversation

@jesusch
Copy link
Copy Markdown

@jesusch jesusch commented Jan 29, 2020

we had an issue with binary foo sneaking into the logstash formatter which caused an exception as json could not dump it

@jesusch
Copy link
Copy Markdown
Author

jesusch commented Mar 8, 2020

is this project still alive?

@israel-fl
Copy link
Copy Markdown
Owner

@jesusch
Hey there, apologies - I'll be going through all the PRs soon.

Comment thread logstash/formatter.py
elif type(message) in (datetime.datetime, datetime.date):
return message.isoformat()

elif type(message) is ObjectId:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I'm missing something here, ObjectId is not defined anywhere. Is this a MongoDB thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants