Skip to content

Commit 24902ec

Browse files
committed
Add more logging to batch config message handling
1 parent 3de8111 commit 24902ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rolling-shutter/keyper/keyper.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ func (kpr *KeyperCore) handleOnChainKeyperSetChanges(
289289
return err
290290
}
291291
if lastSent == keyperSet.KeyperConfigIndex {
292+
log.Debug().
293+
Int64("keyper-config-index", keyperSet.KeyperConfigIndex).
294+
Msg("batch config already sent (scheduled).")
292295
return nil
293296
}
294297

@@ -309,6 +312,10 @@ func (kpr *KeyperCore) handleOnChainKeyperSetChanges(
309312

310313
err = q.SetLastBatchConfigSent(ctx, keyperSet.KeyperConfigIndex)
311314
if err != nil {
315+
log.Warn().Err(err).
316+
Interface("keyper-set", keyperSet).
317+
Int64("keyper-config-index", keyperSet.KeyperConfigIndex).
318+
Msg("error when setting last batch config sent. Returning nil.")
312319
return nil
313320
}
314321

0 commit comments

Comments
 (0)