mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 09:16:00 +00:00
Reduced logging
This commit is contained in:
parent
0838a10ef3
commit
d45c6edc38
1 changed files with 2 additions and 3 deletions
|
@ -607,14 +607,13 @@ 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 || BuildConfig.DEBUG) {
|
if (!cached && (abc > 1024 * 1024 || BuildConfig.DEBUG)) {
|
||||||
String msg = "Avatar type=" + info.type +
|
String msg = "Avatar type=" + info.type +
|
||||||
" domain=" + UriHelper.getEmailDomain(info.email) +
|
" domain=" + UriHelper.getEmailDomain(info.email) +
|
||||||
" size=" + Helper.humanReadableByteCount(abc) +
|
" size=" + Helper.humanReadableByteCount(abc) +
|
||||||
"/" + Helper.humanReadableByteCount(info.bitmap.getByteCount()) +
|
"/" + Helper.humanReadableByteCount(info.bitmap.getByteCount()) +
|
||||||
" " + info.bitmap.getWidth() + "x" + info.bitmap.getHeight() + " " + info.bitmap.getConfig() +
|
" " + info.bitmap.getWidth() + "x" + info.bitmap.getHeight() + " " + info.bitmap.getConfig() +
|
||||||
" play=" + BuildConfig.PLAY_STORE_RELEASE +
|
" play=" + BuildConfig.PLAY_STORE_RELEASE;
|
||||||
" cached=" + cached;
|
|
||||||
if (!BuildConfig.DEBUG)
|
if (!BuildConfig.DEBUG)
|
||||||
Log.e(msg);
|
Log.e(msg);
|
||||||
EntityLog.log(context, EntityLog.Type.Debug4, msg);
|
EntityLog.log(context, EntityLog.Type.Debug4, msg);
|
||||||
|
|
Loading…
Reference in a new issue