retry login, bot debug logging
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
6fb79f8b21
commit
6237c1093a
4
main.go
4
main.go
|
@ -45,10 +45,12 @@ func main() {
|
|||
xlog.Info("Connecting ...")
|
||||
|
||||
bot := matterclient.New(*name, *pass, *team, *server)
|
||||
//bot.SetLogLevel("debug")
|
||||
bot.SetLogLevel("debug")
|
||||
retry:
|
||||
err := bot.Login()
|
||||
if err != nil {
|
||||
xlog.Error(err.Error())
|
||||
goto retry
|
||||
}
|
||||
teamId := bot.GetTeamId()
|
||||
for _, ch := range strings.Split(*channels, ",") {
|
||||
|
|
Loading…
Reference in New Issue