Skip to content

Commit b5de7b1

Browse files
committed
move buffering logs back to default level
Signed-off-by: deepthi <deepthi@planetscale.com>
1 parent 9c6c380 commit b5de7b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

go/vt/discovery/keyspace_events.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ func (kss *keyspaceState) ensureConsistentLocked() {
318318
// watcher. this means the ongoing availability event has been resolved, so we can broadcast
319319
// a resolution event to all listeners
320320
kss.consistent = true
321+
log.Infof("keyspace %s is now consistent", kss.keyspace)
321322

322323
kss.moveTablesState = nil
323324

go/vt/vtgate/buffer/shard_buffer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func (sb *shardBuffer) startBufferingLocked(ctx context.Context, kev *discovery.
286286
msg = "Dry-run: Would have started buffering"
287287
}
288288
starts.Add(sb.statsKey, 1)
289-
log.V(2).Infof("%v for shard: %s (window: %v, size: %v, max failover duration: %v) (A failover was detected by this seen error: %v.)",
289+
log.Infof("%v for shard: %s (window: %v, size: %v, max failover duration: %v) (A failover was detected by this seen error: %v.)",
290290
msg,
291291
topoproto.KeyspaceShardString(sb.keyspace, sb.shard),
292292
sb.buf.config.Window,
@@ -562,7 +562,7 @@ func (sb *shardBuffer) stopBufferingLocked(reason stopReason, details string) {
562562
if sb.mode == bufferModeDryRun {
563563
msg = "Dry-run: Would have stopped buffering"
564564
}
565-
log.V(2).Infof("%v for shard: %s after: %.1f seconds due to: %v. Draining %d buffered requests now.",
565+
log.Infof("%v for shard: %s after: %.1f seconds due to: %v. Draining %d buffered requests now.",
566566
msg, topoproto.KeyspaceShardString(sb.keyspace, sb.shard), d.Seconds(), details, len(q))
567567

568568
var clientEntryError error
@@ -622,7 +622,7 @@ func (sb *shardBuffer) drain(q []*entry, err error) {
622622
wg.Wait()
623623

624624
d := sb.timeNow().Sub(start)
625-
log.V(2).Infof("Draining finished for shard: %s Took: %v for: %d requests.", topoproto.KeyspaceShardString(sb.keyspace, sb.shard), d, len(q))
625+
log.Infof("Draining finished for shard: %s Took: %v for: %d requests.", topoproto.KeyspaceShardString(sb.keyspace, sb.shard), d, len(q))
626626
requestsDrained.Add(sb.statsKey, int64(len(q)))
627627

628628
// Draining is done. Change state from "draining" to "idle".

0 commit comments

Comments
 (0)