From 8aac0e81d99794bbc57ee100a1f4a50d16a34941 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:31:03 -0500 Subject: [PATCH] Revert "Temp: add debug logs" This reverts commit c9a1ea1fa8513fdfae8da356a7ceaaf536828295. --- app/router/strategy_leastload.go | 1 - core/xray.go | 1 - infra/conf/xray.go | 2 -- 3 files changed, 4 deletions(-) diff --git a/app/router/strategy_leastload.go b/app/router/strategy_leastload.go index 98eeef75df35..a4ef1c122a67 100644 --- a/app/router/strategy_leastload.go +++ b/app/router/strategy_leastload.go @@ -61,7 +61,6 @@ func (s *LeastLoadStrategy) InjectContext(ctx context.Context) { s.ctx = ctx core.RequireFeaturesAsync(s.ctx, func(observatory extension.Observatory) { s.observer = observatory - errors.LogDebug(s.ctx, "InjectContext ", observatory) }) } diff --git a/core/xray.go b/core/xray.go index 4075c2f7a43b..3668542c51a3 100644 --- a/core/xray.go +++ b/core/xray.go @@ -316,7 +316,6 @@ func (s *Instance) RequireFeaturesAsync(callback interface{}) { go func() { var finished = false for i := 0; !finished; i++ { - errors.LogDebug(s.ctx, "RequireFeaturesAsync count ", i) if i > 1000 { errors.LogError(s.ctx, "RequireFeaturesAsync failed after count ", i) break; diff --git a/infra/conf/xray.go b/infra/conf/xray.go index 2c44dc5ad7be..ee9e6dfd81b2 100644 --- a/infra/conf/xray.go +++ b/infra/conf/xray.go @@ -576,7 +576,6 @@ func (c *Config) Build() (*core.Config, error) { return nil, err } config.App = append(config.App, serial.ToTypedMessage(r)) - errors.LogDebug(context.Background(), "Append Observatory!") } if c.BurstObservatory != nil { @@ -585,7 +584,6 @@ func (c *Config) Build() (*core.Config, error) { return nil, err } config.App = append(config.App, serial.ToTypedMessage(r)) - errors.LogDebug(context.Background(), "Append BurstObservatory!") } var inbounds []InboundDetourConfig