1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

Add log for exceptions

This commit is contained in:
Him188 2020-01-30 23:49:56 +08:00
parent 8451fabe5d
commit 84db241c94

View File

@ -102,6 +102,7 @@ abstract class BotImpl<N : BotNetworkHandler> constructor(
try {
return _network.login()
} catch (e: Exception){
e.logStacktrace()
_network.dispose(e)
}
logger.warning("Login failed. Retrying in 3s...")