mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Debug: log options
This commit is contained in:
parent
62f93308bc
commit
cd434c5e28
1 changed files with 5 additions and 0 deletions
|
@ -1843,6 +1843,9 @@ public class Log {
|
|||
|
||||
ContentResolver resolver = context.getContentResolver();
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean main_log = prefs.getBoolean("main_log", false);
|
||||
boolean protocol = prefs.getBoolean("protocol", false);
|
||||
int level = prefs.getInt("log_level", Log.getDefaultLogLevel());
|
||||
long last_cleanup = prefs.getLong("last_cleanup", 0);
|
||||
|
||||
PackageManager pm = context.getPackageManager();
|
||||
|
@ -1895,6 +1898,8 @@ public class Log {
|
|||
sb.append(String.format("SoC: %s/%s\r\n", Build.SOC_MANUFACTURER, Build.SOC_MODEL));
|
||||
sb.append(String.format("OS version: %s\r\n", osVersion));
|
||||
sb.append(String.format("uid: %d\r\n", android.os.Process.myUid()));
|
||||
sb.append(String.format("Log main: %b protocol: %b level: %d=%b\r\n",
|
||||
main_log, protocol, level, level <= android.util.Log.INFO));
|
||||
sb.append("\r\n");
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
|
|
Loading…
Reference in a new issue