mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Log when we fail to connect to relay
This commit is contained in:
parent
eb1a234a77
commit
c9e67fb460
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user