Skip to content

Commit 861cef9

Browse files
author
Mark Koudritsky
committed
Log app and protocol version on startup
1 parent f7faebe commit 861cef9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

android/WALT/app/src/main/java/org/chromium/latency/walt/MainActivity.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ protected void onCreate(Bundle savedInstanceState) {
150150
logger = SimpleLogger.getInstance(this);
151151
broadcastManager = LocalBroadcastManager.getInstance(this);
152152

153-
// Add basic device info to the log
154-
logger.log("DEVICE INFO");
153+
// Add basic version and device info to the log
154+
logger.log(String.format("WALT v%s (versionCode=%d)",
155+
BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE));
156+
logger.log("WALT protocol version " + clockManager.PROTOCOL_VERSION);
157+
logger.log("DEVICE INFO:");
155158
logger.log(" " + Build.FINGERPRINT);
156159
logger.log(" Build.SDK_INT=" + Build.VERSION.SDK_INT);
157160
logger.log(" os.version=" + System.getProperty("os.version"));

0 commit comments

Comments
 (0)