Skip to content

Fix logging from low level operations #364

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

Closed
wants to merge 2 commits into from
Closed

Fix logging from low level operations #364

wants to merge 2 commits into from

Conversation

masci
Copy link
Contributor

@masci masci commented Aug 28, 2019

Fixes #174

This PR provides a wrapper around logrus to be used by the legacy package. This way, the global -v and --log-level options will be actually used by the low level packages under legacy, along with all the logging setup we already do at the CLI level.

@masci masci added this to the 0.5.0 milestone Aug 28, 2019
// Fprintln is supposed to let the caller decide the target, let's not do it
// and just forward to Println
func (l LegacyLogger) Fprintln(w io.Writer, level string, format string, a ...interface{}) {
l.Println(level, format, a...)
Copy link
Member

Choose a reason for hiding this comment

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

I think that this will create some regressions because the parameter w must be considered to redirect the output to the correct stream... the legacy i18n module is really a mess, let's have a call to plan a way to migrate to a saner logging infra.

@masci masci removed this from the 0.5.0 milestone Aug 30, 2019
@masci masci closed this Oct 9, 2019
@per1234 per1234 added conclusion: declined Will not be worked on topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Mar 25, 2022
@per1234 per1234 deleted the massi/logger branch May 4, 2022 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON format not working properly with compile command
3 participants