优化异常提示
This commit is contained in:
laoyuyu
2020-02-06 22:22:10 +08:00
parent 96efa35c4e
commit e015c2a2f7
55 changed files with 324 additions and 523 deletions

View File

@@ -63,10 +63,8 @@ public class ALog {
return println(Log.ERROR, tag, msg);
}
public static int e(String tag, Throwable e) {
String msg = getExceptionString(e);
ErrorHelp.saveError(tag, "", msg);
return println(Log.ERROR, tag, msg);
public static void e(String tag, String msg, Throwable e) {
Log.e(tag, msg, e);
}
/**

View File

@@ -534,7 +534,7 @@ public class CommonUtil {
try {
is = new FileInputStream(updateFile);
} catch (FileNotFoundException e) {
ALog.e(TAG, e);
e.printStackTrace();
return null;
}
@@ -549,7 +549,7 @@ public class CommonUtil {
try {
digest = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
ALog.e(TAG, e);
e.printStackTrace();
return null;
}
@@ -571,7 +571,7 @@ public class CommonUtil {
try {
is.close();
} catch (IOException e) {
ALog.e(TAG, e);
e.printStackTrace();
}
}
}