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

vault-env: fix logrus behaviour that sends all logst to stder #1729

Merged
merged 2 commits into from Dec 2, 2022

Conversation

jespada
Copy link
Contributor

@jespada jespada commented Nov 23, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #1730
License Apache 2.0

What's in this PR?

There is an ongoing issue with logrus and many other projects that relay on it report the same 1 2 , basically logrus will log to stderr things that should not be there and this is an issue since this get parsed incorrectly.
This PR uses logrus write hooks to send them to the correct place.

Why?

It make any log parsing and aggregation tool to behaves correctly.

Additional context

Checklist

@akijakya akijakya added this to In progress in Bank-Vaults via automation Nov 30, 2022
Copy link
Contributor

@akijakya akijakya left a comment

Choose a reason for hiding this comment

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

LGTM, also checked in action, works perfectly!

@akijakya akijakya merged commit f64d482 into bank-vaults:main Dec 2, 2022
Bank-Vaults automation moved this from In progress to Done Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Bank-Vaults
  
Done
Development

Successfully merging this pull request may close these issues.

vault-env logs all stdout to stderr
2 participants