Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle unexpected log output #66

Merged

Conversation

inxilpro
Copy link
Contributor

This is a band aid for #65 — it doesn't necessarily fix the issue, but it at least ensures that if Sidecar runs into log output that it doesn't expect, it doesn't completely fail.

@inxilpro
Copy link
Contributor Author

It also looks like if the sidecar handler has a very large log output, it will get truncated, causing the parser to break. It looks like it only keeps some specific number of bytes, so the beginning of the log output can be missing. Since the parser splits by new lines and then looks at the beginning of each line, this can be a problem if the first line starts part-way through a truncated log message.

@aarondfrancis
Copy link
Owner

I think the whole logging thing needs to be improved and this is a good step in that direction. Thanks!

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