mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-20 09:08: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) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
|
||||||
|
Uri displayPhotoUri = Uri.withAppendedPath(uri, ContactsContract.Contacts.Photo.DISPLAY_PHOTO);
|
||||||
|
|
||||||
try {
|
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) {
|
if (fd == null) {
|
||||||
return Optional.absent();
|
return Optional.absent();
|
||||||
@ -250,7 +251,7 @@ public class MultiDeviceContactUpdateJob extends MasterSecretJob implements Inje
|
|||||||
.withLength(fd.getLength())
|
.withLength(fd.getLength())
|
||||||
.build());
|
.build());
|
||||||
} catch (IOException e) {
|
} 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) {
|
public String scrub(final String in) {
|
||||||
Log.d(TAG, "scrubbing input");
|
android.util.Log.d(TAG, "scrubbing input");
|
||||||
String out = in;
|
String out = in;
|
||||||
for (Pattern pattern : patterns) {
|
for (Pattern pattern : patterns) {
|
||||||
Matcher matcher = pattern.matcher(out);
|
Matcher matcher = pattern.matcher(out);
|
||||||
@ -59,7 +59,7 @@ public class Scrubber {
|
|||||||
builder.append(censored);
|
builder.append(censored);
|
||||||
|
|
||||||
lastEndingPos = matcher.end();
|
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));
|
builder.append(out.substring(lastEndingPos));
|
||||||
out = builder.toString();
|
out = builder.toString();
|
||||||
|
@ -48,7 +48,7 @@ public class SignalGlideModule extends AppGlideModule {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void applyOptions(Context context, GlideBuilder builder) {
|
public void applyOptions(Context context, GlideBuilder builder) {
|
||||||
builder.setLogLevel(Log.INFO);
|
builder.setLogLevel(Log.ERROR);
|
||||||
// builder.setDiskCache(new NoopDiskCacheFactory());
|
// builder.setDiskCache(new NoopDiskCacheFactory());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user