1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 01:06:11 +00:00

Improved logging

This commit is contained in:
M66B 2024-06-20 11:41:13 +02:00
parent fa0a02c9b5
commit 7723245495

View file

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