mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 16:23:09 +02:00
Include SDK version and phone model in debug log
This commit is contained in:
@@ -17,6 +17,7 @@ package com.health.openscale.gui.preferences;
|
|||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.CheckBoxPreference;
|
import android.preference.CheckBoxPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
@@ -139,9 +140,10 @@ public class AboutPreferences extends PreferenceFragment {
|
|||||||
Timber.plant(new FileDebugTree(output));
|
Timber.plant(new FileDebugTree(output));
|
||||||
findPreference(KEY_DEBUG_LOG).setSummary(R.string.info_is_enable);
|
findPreference(KEY_DEBUG_LOG).setSummary(R.string.info_is_enable);
|
||||||
OpenScale.DEBUG_MODE = true;
|
OpenScale.DEBUG_MODE = true;
|
||||||
Timber.d("Debug log enabled (%s v%s (%d))",
|
Timber.d("Debug log enabled, %s v%s (%d), SDK %d, %s %s",
|
||||||
getResources().getString(R.string.app_name),
|
getResources().getString(R.string.app_name),
|
||||||
BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE);
|
BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE,
|
||||||
|
Build.VERSION.SDK_INT, Build.MANUFACTURER, Build.MODEL);
|
||||||
}
|
}
|
||||||
catch (IOException ex) {
|
catch (IOException ex) {
|
||||||
Timber.e(ex, "Failed to open debug log %s", uri.toString());
|
Timber.e(ex, "Failed to open debug log %s", uri.toString());
|
||||||
|
Reference in New Issue
Block a user