Description[Android] Fix a deadlock between telemetry and DeviceUtils.
Many functions in Python's logging module grab a lock internally. Some
appear to do so before converting the provided message to a string via
its __str__ method.
Calling an object's __str__ method before calling a logging funciton
allows anything called by the __str__ method to log without the risk of
hitting a deadlock.
BUG=392869
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282412
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Messages
Total messages: 6 (0 generated)
|