Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-41688 Reduce logging in metadata client (meta_client.go printstats())
In meta_client.go printstats() function, change all of the messages to Verbose level (which is between Info and Debug levels), except: 1. Keep "connected with %v indexers" message at Info level. (This is just one message per logging iteration, not one per index.) 2. For "client stats current" message, log a new message at Info level giving just the count of indexes with non-current stats. (This is also only one message per iteration.) The messages logging the ID and current/not current status of every index will change to Verbose level. Also improved performance: 1. Skip all work for Verbose level if this level is not enabled. 2. Short-circuit isAllStatsCurrent() as soon as it finds a non-current stats. Change-Id: I7289bccfbc5be2bfc30f604a7dbf0cbd9d7fdd9d
- Loading branch information
1 parent
054d52d
commit 9307ee1
Showing
1 changed file
with
59 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters