Filter exceptions

pull/174/head
M66B 5 years ago
parent cde31f2901
commit ac36f1b228

@ -301,14 +301,16 @@ public class Log {
ex.getMessage() != null && ex.getMessage() != null &&
(ex.getMessage().startsWith("Download image failed") || (ex.getMessage().startsWith("Download image failed") ||
ex.getMessage().startsWith("http://") || ex.getMessage().startsWith("http://") ||
ex.getMessage().startsWith("https://"))) ex.getMessage().startsWith("https://") ||
ex.getMessage().startsWith("content://")))
return false; return false;
if (ex instanceof IOException && if (ex instanceof IOException &&
ex.getMessage() != null && ex.getMessage() != null &&
(ex.getMessage().startsWith("HTTP status=") || (ex.getMessage().startsWith("HTTP status=") ||
"NetworkError".equals(ex.getMessage()) || // account manager "NetworkError".equals(ex.getMessage()) || // account manager
"Resetting to invalid mark".equals(ex.getMessage()))) "Resetting to invalid mark".equals(ex.getMessage()) ||
"Mark has been invalidated.".equals(ex.getMessage())))
return false; return false;
if (ex instanceof SSLPeerUnverifiedException || if (ex instanceof SSLPeerUnverifiedException ||
@ -319,6 +321,10 @@ public class Log {
ex.getCause() instanceof CertPathValidatorException) ex.getCause() instanceof CertPathValidatorException)
return false; // checkUpdate! return false; // checkUpdate!
if (ex instanceof RuntimeException &&
"Illegal meta data value: the child service doesn't exist".equals(ex.getMessage()))
return false;
// Rate limit // Rate limit
int count = prefs.getInt("crash_report_count", 0) + 1; int count = prefs.getInt("crash_report_count", 0) + 1;
prefs.edit().putInt("crash_report_count", count).apply(); prefs.edit().putInt("crash_report_count", count).apply();

Loading…
Cancel
Save