Improved logging

pull/215/head
M66B 5 months ago
parent 4b83f68b1b
commit c419a3ebde

@ -602,11 +602,14 @@ public class ContactInfo {
Log.e(ex); Log.e(ex);
} }
if (BuildConfig.DEBUG && if (info.bitmap != null) {
info.bitmap != null && int abc = info.bitmap.getAllocationByteCount();
info.bitmap.getAllocationByteCount() > 1024 * 1024) if (abc > 1024 * 1024) {
EntityLog.log(context, EntityLog.Type.Debug5, "Avatar " + info.email + Log.e("Avatar type=" + info.type + " size=" + abc);
" " + info.type + "=" + Helper.humanReadableByteCount(info.bitmap.getAllocationByteCount())); EntityLog.log(context, EntityLog.Type.Debug5,
"Avatar email=" + info.email + " type=" + info.type + " size=" + abc);
}
}
synchronized (emailContactInfo) { synchronized (emailContactInfo) {
emailContactInfo.put(key, info); emailContactInfo.put(key, info);

Loading…
Cancel
Save