retry login, bot debug logging
the build was successful Details

This commit is contained in:
an 2018-04-01 11:50:34 +02:00
parent 6fb79f8b21
commit 6237c1093a
1 changed files with 3 additions and 1 deletions

View File

@ -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, ",") {