mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 10:25:29 +00:00
Reduced logging
This commit is contained in:
parent
5a7365b3ec
commit
f5d1b06fda
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,7 @@ import android.os.TransactionTooLargeException;
|
|||
import android.os.ext.SdkExtensions;
|
||||
import android.provider.Settings;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.text.style.RelativeSizeSpan;
|
||||
import android.text.style.StrikethroughSpan;
|
||||
|
@ -611,6 +612,8 @@ public class Log {
|
|||
Object element = Array.get(v, i);
|
||||
if (element instanceof Long)
|
||||
elements[i] = element + " (0x" + Long.toHexString((Long) element) + ")";
|
||||
else if (element instanceof Spanned)
|
||||
elements[i] = "<redacted>";
|
||||
else
|
||||
elements[i] = (element == null ? "<null>" : printableString(element.toString()));
|
||||
}
|
||||
|
@ -620,6 +623,8 @@ public class Log {
|
|||
value = "[" + value + "]";
|
||||
} else if (v instanceof Long)
|
||||
value = v + " (0x" + Long.toHexString((Long) v) + ")";
|
||||
else if (v instanceof Spanned)
|
||||
value = "<redacted>";
|
||||
else if (v instanceof Bundle)
|
||||
value = "{" + TextUtils.join(" ", getExtras((Bundle) v)) + "}";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue