Reduced logging

pull/217/head
M66B 5 months ago
parent 9042a26bdf
commit 17809acd7d

@ -562,6 +562,12 @@ class Core {
} catch (Throwable ex) { } catch (Throwable ex) {
iservice.dump(account.name + "/" + folder.name); iservice.dump(account.name + "/" + folder.name);
if (ex instanceof OperationCanceledException || if (ex instanceof OperationCanceledException ||
(ex instanceof IOException &&
"NIL".equals(ex.getMessage())) ||
(ex instanceof IOException &&
context.getString(R.string.app_cake).equals(ex.getMessage())) ||
(ex instanceof MessagingException &&
"Cannot load header".equals(ex.getMessage())) ||
(ex instanceof IllegalArgumentException && (ex instanceof IllegalArgumentException &&
ex.getMessage() != null && ex.getMessage() != null &&
ex.getMessage().startsWith("Message not found for"))) ex.getMessage().startsWith("Message not found for")))
@ -720,7 +726,10 @@ class Core {
(op.tries > 1 || (op.tries > 1 ||
ex.getCause() instanceof BadCommandException || ex.getCause() instanceof BadCommandException ||
ex.getCause() instanceof CommandFailedException)) ex.getCause() instanceof CommandFailedException))
Log.e(new Throwable(msg, ex)); if (BuildConfig.PLAY_STORE_RELEASE)
Log.i(new Throwable(msg, ex));
else
Log.e(new Throwable(msg, ex));
try { try {
db.beginTransaction(); db.beginTransaction();

@ -5639,7 +5639,10 @@ public class MessageHelper {
return count; return count;
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); if (BuildConfig.PLAY_STORE_RELEASE)
Log.i(ex);
else
Log.e(ex);
return -1; return -1;
} }
} }

@ -2349,7 +2349,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
try { try {
ifolder = iservice.getStore().getFolder(folder.name); ifolder = iservice.getStore().getFolder(folder.name);
} catch (IllegalStateException ex) { } catch (IllegalStateException | MessagingException ex) {
if ("Not connected".equals(ex.getMessage())) { if ("Not connected".equals(ex.getMessage())) {
Log.i(ex); Log.i(ex);
return; // Store closed return; // Store closed

@ -99,7 +99,10 @@ public class UnknownCharsetProvider extends CharsetProvider {
String jname = MimeUtility.javaCharset(name); String jname = MimeUtility.javaCharset(name);
return Charset.forName(jname); return Charset.forName(jname);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e("Unknown charset " + name, ex); if (BuildConfig.PLAY_STORE_RELEASE)
Log.i("Unknown charset " + name, ex);
else
Log.e("Unknown charset " + name, ex);
return null; return null;
} }
} }

Loading…
Cancel
Save