-
Notifications
You must be signed in to change notification settings - Fork 125
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
Bug 1812738 - allow user to set Glean log level #2459
Conversation
5c9bef4
to
203a75c
Compare
@travis79 I set this up so that you can just call the function with your log preference. The other debug options all go through |
924f07d
to
ef898a1
Compare
I think this should be fine. I actually envisioned this added as a parameter to the configuration passed into Glean.initialize, that way it's not adding the burden of calling an additional API to set the logging level |
Note that on Python we already pass in the log level, see https://mozilla.github.io/glean/book/user/debugging/python.html#logging-pings |
Ahh, I'd forgotten that we had this in Python 🤦. Yes, let's go with consistency! |
c69b3f7
to
2cd0428
Compare
glean-core/android/src/main/java/mozilla/telemetry/glean/config/Configuration.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for one more round of sending this back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I lean in @badboy's direction here on the default level of the logging, but no need to block on further review, I think.
3085ba8
to
37c48d7
Compare
37c48d7
to
c852fe4
Compare
@badboy |
Allow the ability to configure the logging levels of Glean.