mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Reduced logging
This commit is contained in:
parent
e151720ba6
commit
21a0852d6c
1 changed files with 7 additions and 3 deletions
|
@ -415,8 +415,11 @@ public class ContactInfo {
|
|||
if (isRecoverable(ex, context))
|
||||
Log.i(ex);
|
||||
else {
|
||||
if (!(ex instanceof FileNotFoundException))
|
||||
Log.w(ex);
|
||||
if (ex instanceof FileNotFoundException ||
|
||||
ex instanceof CertPathValidatorException)
|
||||
Log.i(ex);
|
||||
else
|
||||
Log.e(ex);
|
||||
try {
|
||||
file.createNewFile();
|
||||
} catch (IOException ex1) {
|
||||
|
@ -556,7 +559,8 @@ public class ContactInfo {
|
|||
try {
|
||||
return future.get();
|
||||
} catch (Throwable ex) {
|
||||
if (ex.getCause() instanceof FileNotFoundException)
|
||||
if (ex.getCause() instanceof FileNotFoundException ||
|
||||
ex.getCause() instanceof CertPathValidatorException)
|
||||
Log.i(ex);
|
||||
else
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Reference in a new issue