Skip to content

Commit

Permalink
suppress non-critical messages logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Apr 20, 2024
1 parent 2f253d1 commit 215f434
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions go/vt/discovery/keyspace_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ func (kss *keyspaceState) ensureConsistentLocked() {
Serving: sstate.serving,
})

log.Infof("keyspace event resolved: %s/%s is now consistent (serving: %v)",
sstate.target.Keyspace, sstate.target.Keyspace,
sstate.serving,
)
//log.Infof("keyspace event resolved: %s/%s is now consistent (serving: %v)",
// sstate.target.Keyspace, sstate.target.Keyspace,
// sstate.serving,
//)

if !sstate.serving {
delete(kss.shards, shard)
Expand Down
2 changes: 1 addition & 1 deletion go/vt/logutil/vts_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func SetVTStructureLogger(conf *zap.Config) (vtSLogger *zap.SugaredLogger, err e
// Use the passed configuration instead of the default configuration
if conf == nil {
defaultProdConf := zap.NewProductionConfig()
defaultProdConf.Level.SetLevel(zap.WarnLevel)
//defaultProdConf.Level.SetLevel(zap.WarnLevel)
conf = &defaultProdConf
}

Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/buffer/shard_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func (sb *shardBuffer) recordKeyspaceEvent(alias *topodatapb.TabletAlias, stillS
sb.mu.Lock()
defer sb.mu.Unlock()

log.Infof("disruption in shard %s/%s resolved (serving: %v)", sb.keyspace, sb.shard, stillServing)
//log.Infof("disruption in shard %s/%s resolved (serving: %v)", sb.keyspace, sb.shard, stillServing)

if !topoproto.TabletAliasEqual(alias, sb.currentPrimary) {
if sb.currentPrimary != nil {
Expand Down

0 comments on commit 215f434

Please sign in to comment.