Skip to content

Commit

Permalink
Log entire stacktrace on exception from IRC lib
Browse files Browse the repository at this point in the history
The additional context is worth having.
cc GH-76
  • Loading branch information
zachbr committed Oct 29, 2023
1 parent f5d4d0d commit c17d3e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c17d3e8

Please sign in to comment.