Reduced logging

pull/194/head
M66B 4 years ago
parent e151720ba6
commit 21a0852d6c

@ -415,8 +415,11 @@ public class ContactInfo {
if (isRecoverable(ex, context)) if (isRecoverable(ex, context))
Log.i(ex); Log.i(ex);
else { else {
if (!(ex instanceof FileNotFoundException)) if (ex instanceof FileNotFoundException ||
Log.w(ex); ex instanceof CertPathValidatorException)
Log.i(ex);
else
Log.e(ex);
try { try {
file.createNewFile(); file.createNewFile();
} catch (IOException ex1) { } catch (IOException ex1) {
@ -556,7 +559,8 @@ public class ContactInfo {
try { try {
return future.get(); return future.get();
} catch (Throwable ex) { } catch (Throwable ex) {
if (ex.getCause() instanceof FileNotFoundException) if (ex.getCause() instanceof FileNotFoundException ||
ex.getCause() instanceof CertPathValidatorException)
Log.i(ex); Log.i(ex);
else else
Log.e(ex); Log.e(ex);

Loading…
Cancel
Save