refactor: remove debug printf statements from monitor creation
Cleaned up temporary debug logging used during RPC timeout investigation. Retained structured logging for enhanced parser integration tracking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -80,7 +80,6 @@ func NewArbitrumMonitor(
|
|||||||
marketMgr *market.MarketManager,
|
marketMgr *market.MarketManager,
|
||||||
scanner *scanner.Scanner,
|
scanner *scanner.Scanner,
|
||||||
) (*ArbitrumMonitor, error) {
|
) (*ArbitrumMonitor, error) {
|
||||||
fmt.Printf("🟢🟢🟢 CLAUDE ENHANCED MONITOR CREATION STARTED 🟢🟢🟢\n")
|
|
||||||
logger.Info("🏁 STARTING NewArbitrumMonitor CREATION - Enhanced parser integration will begin")
|
logger.Info("🏁 STARTING NewArbitrumMonitor CREATION - Enhanced parser integration will begin")
|
||||||
|
|
||||||
// Early check before any processing
|
// Early check before any processing
|
||||||
@@ -94,15 +93,11 @@ func NewArbitrumMonitor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
logger.Info("🔧 Parameters validated - proceeding with monitor creation")
|
logger.Info("🔧 Parameters validated - proceeding with monitor creation")
|
||||||
fmt.Printf("🔵 About to create connection manager\n")
|
|
||||||
|
|
||||||
// Create Ethereum client with connection manager for retry and fallback support
|
// Create Ethereum client with connection manager for retry and fallback support
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
fmt.Printf("🔵 Context created, creating connection manager\n")
|
|
||||||
connectionManager := arbitrum.NewConnectionManager(arbCfg, logger)
|
connectionManager := arbitrum.NewConnectionManager(arbCfg, logger)
|
||||||
fmt.Printf("🔵 Connection manager created, attempting RPC connection\n")
|
|
||||||
rateLimitedClient, err := connectionManager.GetClientWithRetry(ctx, 3)
|
rateLimitedClient, err := connectionManager.GetClientWithRetry(ctx, 3)
|
||||||
fmt.Printf("🔵 RPC connection attempt completed\n")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to connect to Arbitrum node with retries: %v", err)
|
return nil, fmt.Errorf("failed to connect to Arbitrum node with retries: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user