From c17d3e8258395aad2e75322c251ca67d2f04b1cd Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sun, 29 Oct 2023 18:22:23 -0500 Subject: [PATCH] Log entire stacktrace on exception from IRC lib The additional context is worth having. cc GH-76 --- src/main/kotlin/io/zachbr/dis4irc/bridge/pier/irc/IrcPier.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/zachbr/dis4irc/bridge/pier/irc/IrcPier.kt b/src/main/kotlin/io/zachbr/dis4irc/bridge/pier/irc/IrcPier.kt index 485ff8b..ed062e1 100644 --- a/src/main/kotlin/io/zachbr/dis4irc/bridge/pier/irc/IrcPier.kt +++ b/src/main/kotlin/io/zachbr/dis4irc/bridge/pier/irc/IrcPier.kt @@ -51,7 +51,7 @@ class IrcPier(private val bridge: Bridge) : Pier { // connect ircConn = builder.then().buildAndConnect() - ircConn.client.exceptionListener.setConsumer { bridge.logger.error("Exception from IRC API: ${it.localizedMessage}")} + ircConn.client.exceptionListener.setConsumer { bridge.logger.warn("Exception from IRC API:", it)} // listeners ircConn.eventManager.registerEventListener(IrcConnectionListener(this))