Skip to content

Commit

Permalink
table_manager: Change some level.Info() logging to level.Debug()
Browse files Browse the repository at this point in the history
There is excessive logging of "creating table" and "synching tables" messages, change them
to use level.Debug() instead of level.Info() to limit the output.

Fixes grafana#1786
  • Loading branch information
patman-cp committed May 2, 2022
1 parent bb2e952 commit 4fda156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/stores/series/index/table_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (m *TableManager) SyncTables(ctx context.Context) error {
}

expected := m.calculateExpectedTables()
level.Info(util_log.Logger).Log("msg", "synching tables", "expected_tables", len(expected))
level.Debug(util_log.Logger).Log("msg", "synching tables", "expected_tables", len(expected))

toCreate, toCheckThroughput, toDelete, err := m.partitionTables(ctx, expected)
if err != nil {
Expand Down Expand Up @@ -476,7 +476,7 @@ func (m *TableManager) createTables(ctx context.Context, descriptions []config.T
merr := tsdb_errors.NewMulti()

for _, desc := range descriptions {
level.Info(util_log.Logger).Log("msg", "creating table", "table", desc.Name)
level.Debug(util_log.Logger).Log("msg", "creating table", "table", desc.Name)
err := m.client.CreateTable(ctx, desc)
if err != nil {
numFailures++
Expand Down

0 comments on commit 4fda156

Please sign in to comment.