mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 15:58:25 +00:00
Suppress some noisy logs.
This commit is contained in:
parent
6359961a82
commit
d10a44f8eb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user