-
Notifications
You must be signed in to change notification settings - Fork 616
Disable verbose logging in transport-runtime. #3648
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
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
Should we also update the log level for the logging statement that the ticket is mentioning? For example, https://github.com/firebase/firebase-android-sdk/blob/master/transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/scheduling/jobscheduling/AlarmManagerScheduler.java#L107 |
@jeremyjiang-dev note the change in the implementation of |
...ransport-runtime/src/main/java/com/google/android/datatransport/runtime/logging/Logging.java
Show resolved
Hide resolved
...port-backend-cct/src/main/java/com/google/android/datatransport/cct/CctTransportBackend.java
Outdated
Show resolved
Hide resolved
How should we advise the developer to solve the issue in the ticket. I think the developer needs to set logging level to INFO in order to get rid off the logs in the tickets. |
As you can see in the docs I linked, info is the default, nothing "lower" than INFO will be logged and has to be explicitly enabled via |
As per the logging documentation , it's possible to strip blocks to |
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.
My previous comment shouldn't prevent this change from being merged BTW.
I mean, that's fair. However those rules are not the default and need to be explicitly added to the app configuration. At which point imo it's reasonable for the developer to deal with the side effects of such changes. Also, I don't think with the link you provided it would be possible to only remove isLoggable without removing Log.d(), iiuc |
/retest |
@vkryachko: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
} | ||
|
||
public static void e(String tag, String message, Throwable e) { | ||
Log.e(getTag(tag), message, e); | ||
tag = getTag(tag); | ||
if (Log.isLoggable(tag, Log.ERROR)) { |
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.
Log.isLoggable will produce an error because sometimes it can exceed the limit of 23 characters
From Documentation
IllegalArgumentException is thrown if the tag.length() > 23 for Nougat (7.0) and prior releases (API <= 25), there is no tag limit of concern after this API level.
fixes #3441