From e59cb34be8081a0258ba25280d0dee5572016d04 Mon Sep 17 00:00:00 2001 From: DaMachinator Date: Tue, 23 Jan 2018 10:12:36 -0500 Subject: [PATCH] Clean up logging --- .../kotlin/civilengineering/bridge/HttpStreamConnection.kt | 5 ++--- src/main/kotlin/civilengineering/bridge/ServerChatHelper.kt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/civilengineering/bridge/HttpStreamConnection.kt b/src/main/kotlin/civilengineering/bridge/HttpStreamConnection.kt index 35ed1f7..f65e66e 100644 --- a/src/main/kotlin/civilengineering/bridge/HttpStreamConnection.kt +++ b/src/main/kotlin/civilengineering/bridge/HttpStreamConnection.kt @@ -45,9 +45,9 @@ class HttpStreamConnection(private val getClosure: () -> HttpGet, private val mh } catch (e: SocketException) { } - CivilEngineering.logger.info("closing stream") + CivilEngineering.logger.debug("closing stream") content.close() - CivilEngineering.logger.info("thread finished") + CivilEngineering.logger.debug("thread finished") return } @@ -55,7 +55,6 @@ class HttpStreamConnection(private val getClosure: () -> HttpGet, private val mh cancelled = true get.abort() join() - println("killed thread") } } \ No newline at end of file diff --git a/src/main/kotlin/civilengineering/bridge/ServerChatHelper.kt b/src/main/kotlin/civilengineering/bridge/ServerChatHelper.kt index c188e04..11fe84c 100644 --- a/src/main/kotlin/civilengineering/bridge/ServerChatHelper.kt +++ b/src/main/kotlin/civilengineering/bridge/ServerChatHelper.kt @@ -10,7 +10,7 @@ class ServerChatHelper { @SubscribeEvent fun onServerUpdate(event: TickEvent.ServerTickEvent) { if (MessageHandler.rcvQueue.isNotEmpty()) - CivilEngineering.logger.info("incoming: " + MessageHandler.rcvQueue.toString()) + CivilEngineering.logger.debug("incoming: " + MessageHandler.rcvQueue.toString()) val nextMessage = MessageHandler.rcvQueue.poll() if (nextMessage != null) {