diff --git a/pkg/domain/domain.go b/pkg/domain/domain.go index 025d539b092ab..c54430ad4df2b 100644 --- a/pkg/domain/domain.go +++ b/pkg/domain/domain.go @@ -2597,11 +2597,11 @@ func (do *Domain) loadStatsWorker() { case <-loadTicker.C: err = statsHandle.Update(ctx, do.InfoSchema()) if err != nil { - logutil.BgLogger().Debug("update stats info failed", zap.Error(err)) + logutil.BgLogger().Warn("update stats info failed", zap.Error(err)) } err = statsHandle.LoadNeededHistograms(do.InfoSchema()) if err != nil { - logutil.BgLogger().Debug("load histograms failed", zap.Error(err)) + logutil.BgLogger().Warn("load histograms failed", zap.Error(err)) } case <-do.exit: return @@ -2680,7 +2680,7 @@ func (do *Domain) updateStatsWorker(_ sessionctx.Context) { case <-deltaUpdateTicker.C: err := statsHandle.DumpStatsDeltaToKV(false) if err != nil { - logutil.BgLogger().Debug("dump stats delta failed", zap.Error(err)) + logutil.BgLogger().Warn("dump stats delta failed", zap.Error(err)) } case <-gcStatsTicker.C: if !do.statsOwner.IsOwner() { @@ -2688,13 +2688,13 @@ func (do *Domain) updateStatsWorker(_ sessionctx.Context) { } err := statsHandle.GCStats(do.InfoSchema(), do.GetSchemaLease()) if err != nil { - logutil.BgLogger().Debug("GC stats failed", zap.Error(err)) + logutil.BgLogger().Warn("GC stats failed", zap.Error(err)) } do.CheckAutoAnalyzeWindows() case <-dumpColStatsUsageTicker.C: err := statsHandle.DumpColStatsUsageToKV() if err != nil { - logutil.BgLogger().Debug("dump column stats usage failed", zap.Error(err)) + logutil.BgLogger().Warn("dump column stats usage failed", zap.Error(err)) } case <-readMemTicker.C: memory.ForceReadMemStats()