Skip to content

Commit

Permalink
Log app and protocol version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kamrik committed Nov 15, 2016
1 parent f7faebe commit 861cef9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ protected void onCreate(Bundle savedInstanceState) {
logger = SimpleLogger.getInstance(this);
broadcastManager = LocalBroadcastManager.getInstance(this);

// Add basic device info to the log
logger.log("DEVICE INFO");
// Add basic version and device info to the log
logger.log(String.format("WALT v%s (versionCode=%d)",
BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE));
logger.log("WALT protocol version " + clockManager.PROTOCOL_VERSION);
logger.log("DEVICE INFO:");
logger.log(" " + Build.FINGERPRINT);
logger.log(" Build.SDK_INT=" + Build.VERSION.SDK_INT);
logger.log(" os.version=" + System.getProperty("os.version"));
Expand Down

0 comments on commit 861cef9

Please sign in to comment.