Log when we fail to connect to relay

This commit is contained in:
Audrius Butkevicius 2015-12-20 22:14:13 +00:00
parent eb1a234a77
commit c9e67fb460

View File

@ -112,7 +112,7 @@ func (s *Svc) CommitConfiguration(from, to config.Configuration) bool {
l.Debugln("Connecting to relay", uri) l.Debugln("Connecting to relay", uri)
c, err := client.NewClient(uri, s.tlsCfg.Certificates, s.invitations, 10*time.Second) c, err := client.NewClient(uri, s.tlsCfg.Certificates, s.invitations, 10*time.Second)
if err != nil { if err != nil {
l.Debugln("Failed to connect to relay", uri, err) l.Infoln("Failed to connect to relay", uri, err)
continue continue
} }
s.tokens[key] = s.Add(c) s.tokens[key] = s.Add(c)