Add Telecom log tagging for whether logs took place in Telecom lock.
We've seen some bugs lately which root cause to an operation taking place OUTSIDE of the Telecom sync lock when it should happen inside. To help diagnose these types of problem, this change adds an icon to the end of Telecom log messages which indicates if the log message was triggered from within the Telecom lock or not.❗ indicates the message came from outside the Telecom lock; this is NOT always a problem as some logs purposely take place outside a lock.🔒 indicates the message came from inside the Telecom lock. This is only enabled in userdebug builds to ensure no extra overhead is incurred to check locks when logging takes place (Thread.holdsLock does appear to be a very efficient API, but still). Test: Build; verify logging indicates whether calls are from in Telecom lock. Bug: 273759792 Change-Id: I3bdf7d444ff81af2df55ff76ec72d8862f72c0f4
Loading
Please register or sign in to comment