mirror of https://github.com/M66B/FairEmail.git
Log long extras in hex
This commit is contained in:
parent
6b517e07fd
commit
c9c03f1460
|
@ -79,11 +79,16 @@ public class Log {
|
|||
String[] elements = new String[length];
|
||||
for (int i = 0; i < length; i++) {
|
||||
Object element = Array.get(v, i);
|
||||
elements[i] = (element == null ? null : element.toString());
|
||||
if (element instanceof Long)
|
||||
elements[i] = "0x" + Long.toHexString((Long) element);
|
||||
else
|
||||
elements[i] = (element == null ? null : element.toString());
|
||||
}
|
||||
value = TextUtils.join(",", elements);
|
||||
}
|
||||
}
|
||||
} else if (v instanceof Long)
|
||||
value = "0x" + Long.toHexString((Long) v);
|
||||
|
||||
stringBuilder.append(key)
|
||||
.append("=")
|
||||
.append(value)
|
||||
|
|
Loading…
Reference in New Issue