-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconnect if syncthing is not healthy #745
Conversation
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
pkg/syncthing/monitor.go
Outdated
@@ -51,8 +52,8 @@ func (s *Syncthing) Monitor(ctx context.Context, disconnect chan error) { | |||
continue | |||
} | |||
if !connected { | |||
log.Info("syncthing not connected, sending disconnect signal") | |||
disconnect <- err | |||
log.Info("syncthing not connected, sending disconnect signal: %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
printf: Info call has possible formatting directive %s (from govet
)
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #745 +/- ##
==========================================
- Coverage 32.06% 31.96% -0.11%
==========================================
Files 59 59
Lines 4615 4627 +12
==========================================
- Hits 1480 1479 -1
- Misses 3036 3049 +13
Partials 99 99
Continue to review full report at Codecov.
|
Try and reconnect if we can't talk to syncthing.