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

Removes bunyan JSON style logging #298

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

jpmcb
Copy link
Contributor

@jpmcb jpmcb commented Oct 13, 2022

Replaced with "pretty", human readable logs.
This will enable kubernetes users to more easily debug and view their logs.

Signed-off-by: John McBride <jpmmcb@amazon.com>

Issue number:

Closes #148

Description of changes:

Removes the bunyan JSON style logging in favor of human readable, "pretty" logs.

Testing done:

Here's a before:

Screen Shot 2022-10-13 at 12 00 36 PM

And after:

Screen Shot 2022-10-13 at 11 59 52 AM


Did some further validation with kubernetes logging. Built a kind cluster locally:

kind create cluster --name test

Built the image:

make

Loaded the local image into my kind cluster

kind load docker-image bottlerocket-update-operator-amd64:v0.2.0-bad7512c-dev --name test

And made modifications to the image tags in the manifest:

image: "bottlerocket-update-operator-amd64:v0.2.0-bad7512c-dev"

Logs are lookin nice!

Screen Shot 2022-10-13 at 12 02 56 PM

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Replaced with "pretty", human readable logs. This will enable kubernetes
users to more easily debug and view their logs.

Signed-off-by: John McBride <jpmmcb@amazon.com>
@jpmcb jpmcb requested a review from gthao313 October 13, 2022 18:03
Copy link
Member

@gthao313 gthao313 left a comment

Choose a reason for hiding this comment

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

Tested it on my side. looks perfect to me! Neat!

@jpmcb jpmcb requested a review from webern October 13, 2022 21:05
@jpmcb jpmcb merged commit b2785f3 into bottlerocket-os:develop Oct 13, 2022
@jpmcb jpmcb deleted the human-readable-logs branch October 13, 2022 23:52
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.

Improve readability of logs
3 participants