|
@@ -17,6 +17,7 @@ import com.emato.ich.MainActivity;
|
|
|
|
|
|
import com.emato.ich.message.ICHPublishClient;
|
|
|
import com.emato.ich.message.ICHTopic;
|
|
|
+import com.emato.ich.utils.BaseUtils;
|
|
|
|
|
|
import org.eclipse.paho.client.mqttv3.MqttMessage;
|
|
|
|
|
@@ -81,7 +82,7 @@ public class UncaughtExceptionHandlerImpl implements Thread.UncaughtExceptionHan
|
|
|
MqttMessage mqttMessage = new MqttMessage();
|
|
|
mqttMessage.setQos(1);
|
|
|
mqttMessage.setPayload(getStackTrace(ex).toByteArray());
|
|
|
- ICHPublishClient.getInstance().publish(ICHTopic.ERROR_LOG_REPORT, mqttMessage);
|
|
|
+ ICHPublishClient.getInstance().publish(String.format(ICHTopic.ERROR_LOG_REPORT, BaseUtils.getClientId()), mqttMessage);
|
|
|
|
|
|
if (!this.handleException(ex) && this.mDefaultHandler != null) {
|
|
|
this.mDefaultHandler.uncaughtException(thread, ex);
|
|
@@ -91,7 +92,7 @@ public class UncaughtExceptionHandlerImpl implements Thread.UncaughtExceptionHan
|
|
|
} catch (InterruptedException var6) {
|
|
|
Log.e(TAG, "error 出现未知异常: ", var6);
|
|
|
mqttMessage.setPayload(getStackTrace(var6).toByteArray());
|
|
|
- ICHPublishClient.getInstance().publish(ICHTopic.ERROR_LOG_REPORT, mqttMessage);
|
|
|
+ ICHPublishClient.getInstance().publish(String.format(ICHTopic.ERROR_LOG_REPORT, BaseUtils.getClientId()), mqttMessage);
|
|
|
}
|
|
|
|
|
|
if (this.mIsRestartApp) {
|