From b3f6f6b415b266d604524638e3d7a5eb8acfe6d0 Mon Sep 17 00:00:00 2001 From: Patrick Mansfield <42042889+patman-cp@users.noreply.github.com> Date: Wed, 4 May 2022 01:02:48 -0700 Subject: [PATCH] table_manager: Change some level.Info() logging to level.Debug() (#6076) 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 #1786 --- pkg/storage/stores/series/index/table_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/stores/series/index/table_manager.go b/pkg/storage/stores/series/index/table_manager.go index 9950eb5982403..4db98b851f279 100644 --- a/pkg/storage/stores/series/index/table_manager.go +++ b/pkg/storage/stores/series/index/table_manager.go @@ -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 { @@ -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++