-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reduce default log level from CONFIG
to INFO
#817
Conversation
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.
LGTM
They do come from SDK afaik and it's better to lower them to trace/verbose level on there. |
The CLI |
I could only get such logs in the CLI
when I ran the SDK entirely on But the default SDK level is So maybe flutter overrides the global logger level? |
It's not flutter that overrides the global logger level. Binding has it's own logger implementation. It's level is set to TRACE by default and filtering out is done on the app side. That's why we see these identifiers on the logs This appears to have performance implications and we could add SDK logger level setting to That's a bit beside the point though, the point is: the level on origin of these log statements should be downgraded to TRACE level. Which I believe is here on the SDK. |
The SDK log filters only affect what lands in
AFAIK the SDK log filter doesn't affect the log stream. This means bindings that register for the log stream would get all log events. If that's true, any log fine-tuning for apps using the bindings can only be done in the app. @roeierez am I missing something? Should I look into filtering the log stream on SDK side? |
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.
@ok300 Let's merge this as the underlying problem is much more complicated to fix on the SDK involving env_logger
crate, parse_filters
config & track_logs
logic.
The
CONFIG
level resulted in logging the sending and receiving of gRPC data frames, which is spamming the logs:These logs appear to be emitted by the lower-level networking calls in flutter. I found no way to specifically target this networking module with a higher log level. @erdemyerebasmaz @ademar111190 if you see a better solution, please let me know.