From a0c9bf40156e742a7e1745d2602822ef770feb88 Mon Sep 17 00:00:00 2001 From: Peter Lee Date: Mon, 8 Jun 2026 15:03:41 -0700 Subject: [PATCH] chore(zetaclient): demote ChainParams enumeration noise to debug Two log lines fire on every UpdateAppContext tick for every chain in the registry, generating ~4M warns/week with no actionable signal: - "skipping unsupported chain" (zetaclient/orchestrator/contextupdater.go) - "chain does not have according ChainParams present; skipping" (zetaclient/context/app.go) These are config-driven enumeration over a static chain list, not runtime warnings. Demote both from Warn to Debug. Real warns (mempool congestion, chain list changes at runtime, invalid chain params with error) remain at Warn. Expected impact: ~4M log lines/wk removed from Datadog ingestion. Co-Authored-By: Claude Opus 4.7 (1M context) --- zetaclient/context/app.go | 6 ++++-- zetaclient/orchestrator/contextupdater.go | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/zetaclient/context/app.go b/zetaclient/context/app.go index fa60ace764..68df4d7708 100644 --- a/zetaclient/context/app.go +++ b/zetaclient/context/app.go @@ -250,10 +250,12 @@ func (a *AppContext) updateChainRegistry( Msg("chain list changed at the runtime") } - // Log warn if somehow chain doesn't chainParam + // Log if a chain in the registry lacks chainParams. Debug-level because this + // fires on every UpdateAppContext tick for every such chain — high-volume + // enumeration noise, not an actionable warning. for _, chainID := range freshChainIDs { if _, ok := freshChainParams[chainID]; !ok && !isZeta(chainID) { - a.logger.Warn(). + a.logger.Debug(). Int64("chain_id", chainID). Msg("chain does not have according ChainParams present; skipping") } diff --git a/zetaclient/orchestrator/contextupdater.go b/zetaclient/orchestrator/contextupdater.go index 1c857b0236..4c7ce721d2 100644 --- a/zetaclient/orchestrator/contextupdater.go +++ b/zetaclient/orchestrator/contextupdater.go @@ -88,7 +88,10 @@ func UpdateAppContext(ctx context.Context, app *zctx.AppContext, zc ZetacoreClie cp := chainParams[i] if !cp.IsSupported { - logger.Warn(). + // Debug-level: this fires every UpdateAppContext tick for every + // unsupported chain in the registry — pure config-driven enumeration, + // not an actionable warning. + logger.Debug(). Int64(logs.FieldChain, cp.ChainId). Msg("skipping unsupported chain") continue