From 6237c1093aac12e4f39af99d3a20b63d7fd05426 Mon Sep 17 00:00:00 2001 From: an Date: Sun, 1 Apr 2018 11:50:34 +0200 Subject: [PATCH] retry login, bot debug logging --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2d6eefd..3006ce2 100644 --- a/main.go +++ b/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, ",") {