mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Improved logging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user