Когда я просто регистрирую сообщение в Android-приложении, Android Monitor распечатать слишком много лишнего текста мусора, например: Код:
Log.d(TAG, "From: " + "34369257099");
Log.d(TAG, "Message Notification Body: " + "Hello");
Выход на мониторе Android:
10-01 14:15:33.262 18193-23771/com.xxxxx.xxxxxx D/MyFirebaseMsgService: From: 34369257099
10-01 14:15:33.262 18193-23771/com.xxxxx.xxxxxx D/MyFirebaseMsgService: Message Notification Body: Hello
[ 10-01 14:15:33.490 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9871) p->msg.arg1(0) OPEN
[ 10-01 14:15:33.490 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10206
[ 10-01 14:15:33.527 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:33.686 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9872) p->msg.arg1(0) OPEN
[ 10-01 14:15:33.686 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/18193/stat
[ 10-01 14:15:33.701 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:33.723 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9873) p->msg.arg1(0) OPEN
[ 10-01 14:15:33.723 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/stat
[ 10-01 14:15:33.740 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.051 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9874) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.051 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10206
[ 10-01 14:15:34.086 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.258 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9875) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.258 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/18193/stat
[ 10-01 14:15:34.274 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.294 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9876) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.294 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/stat
[ 10-01 14:15:34.315 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.613 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9877) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.613 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10206
[ 10-01 14:15:34.648 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.831 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9878) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.831 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/18193/stat
[ 10-01 14:15:34.849 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:34.867 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9879) p->msg.arg1(0) OPEN
[ 10-01 14:15:34.867 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/stat
[ 10-01 14:15:34.885 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:35.176 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9880) p->msg.arg1(0) OPEN
[ 10-01 14:15:35.176 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10206
[ 10-01 14:15:35.210 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:35.404 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9881) p->msg.arg1(0) OPEN
[ 10-01 14:15:35.404 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/18193/stat
[ 10-01 14:15:35.421 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:35.439 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9882) p->msg.arg1(0) OPEN
[ 10-01 14:15:35.439 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/stat
[ 10-01 14:15:35.457 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:35.738 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9883) p->msg.arg1(0) OPEN
[ 10-01 14:15:35.738 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/net/xt_qtaguid/stats | grep 10206
[ 10-01 14:15:35.764 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:35.974 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9884) p->msg.arg1(0) OPEN
[ 10-01 14:15:35.974 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/18193/stat
[ 10-01 14:15:35.990 19060:19060 E/ ]
[adb] cuurent command is A_CLSE
[ 10-01 14:15:36.009 19060:19060 E/ ]
[adb] handle_packet() t->online(1) p->msg.arg0(9885) p->msg.arg1(0) OPEN
[ 10-01 14:15:36.009 19060:19060 E/ ]
[adb] handle the adb command, and the command = adb shell:cat /proc/stat
Можете ли вы помочь мне решить эту проблему? Я имею в виду, почему этот дополнительный текст печатается? и как я могу избавиться от этого? Я использовал фильтр для отображения только журналов, связанных с пакетом, и попробовал также фильтровать TAG. Но см. Прикрепленное изображение, которое в некоторых журналах печатается по-прежнему мусорным текстом.
Спасибо в Advance