reduce info logging
This commit is contained in:
parent
ecbb95391f
commit
4392b442da
|
@ -164,7 +164,7 @@ open class MessageHandler : CoroutineScope {
|
||||||
.responseString()
|
.responseString()
|
||||||
when (result) {
|
when (result) {
|
||||||
is Result.Success -> {
|
is Result.Success -> {
|
||||||
logger.info("sent $it")
|
logger.debug("sent $it")
|
||||||
sendErrors = 0
|
sendErrors = 0
|
||||||
}
|
}
|
||||||
is Result.Failure -> {
|
is Result.Failure -> {
|
||||||
|
@ -206,7 +206,7 @@ open class MessageHandler : CoroutineScope {
|
||||||
reader.useLines { lines ->
|
reader.useLines { lines ->
|
||||||
lines.forEach { line ->
|
lines.forEach { line ->
|
||||||
val msg = ApiMessage.decode(line)
|
val msg = ApiMessage.decode(line)
|
||||||
logger.info("received: $msg")
|
logger.debug("received: $msg")
|
||||||
if (msg.event != "api_connect") {
|
if (msg.event != "api_connect") {
|
||||||
messageStream.send(msg)
|
messageStream.send(msg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue