Skip to content

Commit

Permalink
Merge pull request #334 from cashapp/prudhvi.throttler_log_generic
Browse files Browse the repository at this point in the history
Remove copier word from log to have the throttler be used outside of spirit
  • Loading branch information
prudhvi authored Jul 30, 2024
2 parents a397dfe + 781f798 commit 7a357a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/throttler/mysql80replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func (l *MySQL80Replica) UpdateLag() error {
}
atomic.StoreInt64(&l.currentLagInMs, newLagValue)
if l.IsThrottled() {
l.logger.Warnf("replication delayed, copier is now being throttled. lag: %v tolerance: %v", atomic.LoadInt64(&l.currentLagInMs), l.lagTolerance)
l.logger.Warnf("replication delayed, throttling in progress. lag: %v tolerance: %v",
atomic.LoadInt64(&l.currentLagInMs), l.lagTolerance)
}
return nil
}

0 comments on commit 7a357a6

Please sign in to comment.