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:
parent
8451fabe5d
commit
84db241c94
@ -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...")
|
||||
|
Loading…
Reference in New Issue
Block a user