Improved logging

pull/215/head
M66B 4 months ago
parent fa0a02c9b5
commit 7723245495

@ -605,9 +605,11 @@ public class ContactInfo {
if (info.bitmap != null) { if (info.bitmap != null) {
int abc = info.bitmap.getAllocationByteCount(); int abc = info.bitmap.getAllocationByteCount();
if (abc > 1024 * 1024) { if (abc > 1024 * 1024) {
Log.e("Avatar type=" + info.type + " size=" + abc); String msg = "Avatar type=" + info.type +
EntityLog.log(context, EntityLog.Type.Debug5, " size=" + abc + "/" + info.bitmap.getByteCount() +
"Avatar email=" + info.email + " type=" + info.type + " size=" + abc); " " + info.bitmap.getWidth() + "x" + info.bitmap.getHeight() + " " + info.bitmap.getConfig();
Log.e(msg);
EntityLog.log(context, EntityLog.Type.Debug5, msg + " email=" + info.email);
} }
} }

Loading…
Cancel
Save