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

fix: don't log empty messages #832

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

morbalint
Copy link
Contributor

@morbalint morbalint commented Nov 29, 2022

Checklist

Version

Requires a PATCH version update

Context

When structured JSON logging is used, don't log empty messages to reduce the complexity and improve performance by not sending an empty json structure to the build-log-service

Changes

structured log writer's write method short circuits empty log messages + test coverage to make sure formatting is preserved

Investigation details

Decisions

godrei
godrei previously approved these changes Dec 1, 2022
log/logwriter/writer_test.go Outdated Show resolved Hide resolved
@godrei godrei merged commit cb1714b into bitrise-io:master Dec 1, 2022
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.

3 participants