Add more information to time detection logs
When receiving only dumpsys from time_detector, it can be useful to know what the system clock time was before it was changed. The logging takes place after the clock has been changed so this is currently missing. Bug: 176316840 Test: build / treehugger only Change-Id: I7441706cf5daaec5377289f215b15cad1d6de4f9
This commit is contained in:
@@ -720,6 +720,7 @@ public final class TimeDetectorStrategyImpl implements TimeDetectorStrategy {
|
||||
String logMsg = "Set system clock using time=" + newTime
|
||||
+ " cause=" + cause
|
||||
+ " elapsedRealtimeMillis=" + elapsedRealtimeMillis
|
||||
+ " (old) actualSystemClockMillis=" + actualSystemClockMillis
|
||||
+ " newSystemClockMillis=" + newSystemClockMillis;
|
||||
if (DBG) {
|
||||
Slog.d(LOG_TAG, logMsg);
|
||||
|
||||
Reference in New Issue
Block a user