Skip to content

Improve logging output#308

Merged
masci merged 1 commit intomasterfrom
massi/better-logging
Jun 16, 2017
Merged

Improve logging output#308
masci merged 1 commit intomasterfrom
massi/better-logging

Conversation

@masci
Copy link
Copy Markdown
Contributor

@masci masci commented Jun 15, 2017

What does this PR do?

Makes the logging output a little bit more useful

Motivation

A lot of noise was going on

Copy link
Copy Markdown
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Added one question, but overall this is great! 🚀

pyval = python.PyBool_FromLong(0)
}
default:
log.Warnf("Could not convert type %s to python", reflect.TypeOf(vi))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this log line was definitely too verbose. That said are there cases where we should still detect and log that we're "missing" a type?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we may want to keep this one in Debug mode. It could be useful in the flare I guess.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure, the walker does trial and error at some point and the error is expected. Even if in debug, it would flood the logs (it already does, see what happens when parsing go_expvar.yaml), at the moment not having this output is more useful, we can reconsider in the future.

@masci masci merged commit 8a0e2ad into master Jun 16, 2017
@masci masci deleted the massi/better-logging branch June 16, 2017 10:54
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