Skip to content

Commit

Permalink
logs 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrajovic committed Jan 11, 2024
1 parent bc825ba commit 6ea8271
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion orchestrator/batch_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (l *batchRequestLoop) requestBatches(ctx context.Context) error {
}

if len(fees) == 0 {
l.Logger().Debugln("no outgoing withdrawals to batch")
l.Logger().Debugln("no withdrawals to batch")
return nil
}

Expand Down
6 changes: 3 additions & 3 deletions orchestrator/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (l *relayerLoop) relayValset(ctx context.Context) error {

if timeElapsed := time.Since(blockTime); timeElapsed <= l.relayValsetOffsetDur {
timeRemaining := time.Duration(int64(l.relayValsetOffsetDur) - int64(timeElapsed))
l.Logger().WithField("time_remaining", timeRemaining.String()).Debugln("valset relay offset duration not expired")
l.Logger().WithField("time_remaining", timeRemaining.String()).Debugln("valset relay offset not reached yet")
return nil
}

Expand Down Expand Up @@ -197,7 +197,7 @@ func (l *relayerLoop) relayBatch(ctx context.Context) error {
}

if oldestConfirmedBatch == nil {
l.Logger().Debugln("no outgoing batch to relay")
l.Logger().Debugln("no batch to relay")
return nil
}

Expand Down Expand Up @@ -239,7 +239,7 @@ func (l *relayerLoop) relayBatch(ctx context.Context) error {

if timeElapsed := time.Since(blockTime); timeElapsed <= l.relayBatchOffsetDur {
timeRemaining := time.Duration(int64(l.relayBatchOffsetDur) - int64(timeElapsed))
l.Logger().WithField("time_remaining", timeRemaining.String()).Debugln("batch relay offset duration not expired")
l.Logger().WithField("time_remaining", timeRemaining.String()).Debugln("batch relay offset not reached yet")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion orchestrator/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (l *ethSignerLoop) signNewBatch(ctx context.Context) error {
}

if oldestUnsignedTransactionBatch == nil {
l.Logger().Debugln("no outgoing batch to confirm")
l.Logger().Debugln("no batch to confirm")
return nil
}

Expand Down

0 comments on commit 6ea8271

Please sign in to comment.