File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,13 @@ func (m *Manager) Run() {
220
220
}).Debugf ("Calling RunSync() to w %s" , w .GetConfig ()["name" ])
221
221
go w .RunSync ()
222
222
}
223
- m .checkpoint ()
223
+ err := m .checkpoint ()
224
+ if err != nil {
225
+ m .logger .WithFields (logrus.Fields {
226
+ "event" : "checkpoint_failed" ,
227
+ "error" : err ,
228
+ }).Error ("Failed to checkpoint" )
229
+ }
224
230
for {
225
231
// wait until config.Interval seconds has elapsed
226
232
select {
@@ -264,7 +270,13 @@ func (m *Manager) Run() {
264
270
// Here we do not checkpoint very concisely (e.g. every time after a successful sync).
265
271
// We just want to minimize re-sync after restarting lug.
266
272
if shouldCheckpoint {
267
- m .checkpoint ()
273
+ err := m .checkpoint ()
274
+ if err != nil {
275
+ m .logger .WithFields (logrus.Fields {
276
+ "event" : "checkpoint_failed" ,
277
+ "error" : err ,
278
+ }).Error ("Failed to checkpoint" )
279
+ }
268
280
}
269
281
}
270
282
case sig , ok := <- m .controlChan :
You can’t perform that action at this time.
0 commit comments