Commit 84db241c authored by Him188's avatar Him188

Add log for exceptions

parent 8451fabe
...@@ -102,6 +102,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor( ...@@ -102,6 +102,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor(
try { try {
return _network.login() return _network.login()
} catch (e: Exception){ } catch (e: Exception){
e.logStacktrace()
_network.dispose(e) _network.dispose(e)
} }
logger.warning("Login failed. Retrying in 3s...") logger.warning("Login failed. Retrying in 3s...")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment