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

pubsys: switch back to simplelog #2454

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

jpculp
Copy link
Member

@jpculp jpculp commented Sep 26, 2022

Description of changes:

Since env_logger can only log output all to stderr or to stdout, I switched back to simplelog to maintain the mixed output pubsys had before #2415. Using CombinedLogger, we can spin up two SimpleLoggers with separate levels and filters as needed.

Also sorted Cargo.toml's dependencies as it was getting a little messy.

Testing done:

Published the same AMI several times to verify a successful and unsuccessful push.
Also tried publishing a bad endpoint, and the output matched what we had with env_logger.

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.

@jpculp jpculp requested review from bcressey and zmrow September 26, 2022 18:40
@jpculp
Copy link
Member Author

jpculp commented Sep 26, 2022

Removed env_logger from Cargo.toml.

Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🧞

@jpculp jpculp merged commit 2debfcc into bottlerocket-os:develop Sep 26, 2022
@jpculp jpculp deleted the back-to-simplelog branch September 26, 2022 23:26
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