Commit 22c56212 by YKai

feat:呼叫失败日志优化

parent 80c862cd
......@@ -166,13 +166,12 @@ class YDLavManager {
}
}
}
else->{
if (act is AudioHomeActivity) {
act.runOnUiThread {
act.writeAgoraLog("用户呼叫失败:${errorCode}")
LogHelper.getInstance().uploadLog(false)
}
}
}
//呼叫失败日志输出
if (act is AudioHomeActivity){
act.runOnUiThread{
act.writeAgoraLog("发送通话邀请失败:${errorCode}")
LogHelper.getInstance().uploadLog(false)
}
}
}
......@@ -343,13 +342,13 @@ class YDLavManager {
AudioImIn.sendCustomNotification(toUid, Gson().toJson(infoBean),
object : IMSendCustomNotificationResultCallBack {
override fun onException(throwable: Throwable) {
writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
LogHelper.getInstance().uploadLog(false)
// writeAgoraLog("云信发送通话邀请异常${throwable.message}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
// LogHelper.getInstance().uploadLog(false)
}
override fun onFailed(code: Int) {
writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
LogHelper.getInstance().uploadLog(false)
// writeAgoraLog("云信发送通话邀请失败${code}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", "confide.log", true)
// LogHelper.getInstance().uploadLog(false)
}
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