Commit 22c56212 by YKai

feat:呼叫失败日志优化

parent 80c862cd
...@@ -166,13 +166,12 @@ class YDLavManager { ...@@ -166,13 +166,12 @@ class YDLavManager {
} }
} }
} }
else->{ }
if (act is AudioHomeActivity) { //呼叫失败日志输出
act.runOnUiThread { if (act is AudioHomeActivity){
act.writeAgoraLog("用户呼叫失败:${errorCode}") act.runOnUiThread{
LogHelper.getInstance().uploadLog(false) act.writeAgoraLog("发送通话邀请失败:${errorCode}")
} LogHelper.getInstance().uploadLog(false)
}
} }
} }
} }
...@@ -343,13 +342,13 @@ class YDLavManager { ...@@ -343,13 +342,13 @@ class YDLavManager {
AudioImIn.sendCustomNotification(toUid, Gson().toJson(infoBean), AudioImIn.sendCustomNotification(toUid, Gson().toJson(infoBean),
object : IMSendCustomNotificationResultCallBack { object : IMSendCustomNotificationResultCallBack {
override fun onException(throwable: Throwable) { override fun onException(throwable: Throwable) {
writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true) // writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
LogHelper.getInstance().uploadLog(false) // LogHelper.getInstance().uploadLog(false)
} }
override fun onFailed(code: Int) { override fun onFailed(code: Int) {
writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true) // writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
LogHelper.getInstance().uploadLog(false) // LogHelper.getInstance().uploadLog(false)
} }
override fun onSuccess() { override fun onSuccess() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment