less logspam for expected msgs

1.2-legacy
Kevin Hester 2021-01-08 15:19:20 +08:00
rodzic 633200ac44
commit 7ff7686ccb
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -723,15 +723,11 @@ class MainActivity : AppCompatActivity(), Logging,
intent.getParcelableExtra<DataPacket>(EXTRA_PAYLOAD)!!
when (payload.dataType) {
Portnums.PortNum.POSITION_APP_VALUE -> {
// This is expected
debug("activity class ignores position messages")
}
Portnums.PortNum.TEXT_MESSAGE_APP_VALUE -> {
model.messagesState.addMessage(payload)
}
else ->
warn("Ignored dataType ${payload.dataType}")
debug("activity only cares about text messages, ignoring dataType ${payload.dataType}")
}
}