Suppress some noisy logs.

master
Greyson Parrelli 2018-09-27 20:01:01 -07:00
parent 6359961a82
commit d10a44f8eb
3 changed files with 7 additions and 6 deletions

View File

@ -236,9 +236,10 @@ public class MultiDeviceContactUpdateJob extends MasterSecretJob implements Inje
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
Uri displayPhotoUri = Uri.withAppendedPath(uri, ContactsContract.Contacts.Photo.DISPLAY_PHOTO);
try {
Uri displayPhotoUri = Uri.withAppendedPath(uri, ContactsContract.Contacts.Photo.DISPLAY_PHOTO);
AssetFileDescriptor fd = context.getContentResolver().openAssetFileDescriptor(displayPhotoUri, "r");
AssetFileDescriptor fd = context.getContentResolver().openAssetFileDescriptor(displayPhotoUri, "r");
if (fd == null) {
return Optional.absent();
@ -250,7 +251,7 @@ public class MultiDeviceContactUpdateJob extends MasterSecretJob implements Inje
.withLength(fd.getLength())
.build());
} catch (IOException e) {
Log.w(TAG, e);
Log.i(TAG, "Could not find avatar for URI: " + displayPhotoUri);
}
}

View File

@ -43,7 +43,7 @@ public class Scrubber {
}
public String scrub(final String in) {
Log.d(TAG, "scrubbing input");
android.util.Log.d(TAG, "scrubbing input");
String out = in;
for (Pattern pattern : patterns) {
Matcher matcher = pattern.matcher(out);
@ -59,7 +59,7 @@ public class Scrubber {
builder.append(censored);
lastEndingPos = matcher.end();
Log.i(TAG, "replacing a match on /" + pattern.toString() + "/ => " + censored);
android.util.Log.i(TAG, "replacing a match on /" + pattern.toString() + "/ => " + censored);
}
builder.append(out.substring(lastEndingPos));
out = builder.toString();

View File

@ -48,7 +48,7 @@ public class SignalGlideModule extends AppGlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
builder.setLogLevel(Log.INFO);
builder.setLogLevel(Log.ERROR);
// builder.setDiskCache(new NoopDiskCacheFactory());
}