reduce info logging

This commit is contained in:
NikkyAI 2018-11-28 17:57:35 +01:00
parent ecbb95391f
commit 4392b442da
1 changed files with 2 additions and 2 deletions

View File

@ -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)
} }