From 1e7bdb509b8d0f30ac653c37a6384fd0e41a5ef1 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 5 Nov 2025 00:31:16 -0500 Subject: [PATCH] chore: remove debug logging from ContextInjector Removed noisy debug print statements that were added during troubleshooting. The context injection is now working correctly and no longer needs diagnostic output. Cleaned up: - Entry point logging - Before/after injection logging - Tool name and args logging --- agent/context_injector.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/agent/context_injector.py b/agent/context_injector.py index d9a9972..f2a1858 100644 --- a/agent/context_injector.py +++ b/agent/context_injector.py @@ -52,10 +52,6 @@ class ContextInjector: """ # Inject context parameters for trade tools if request.name in ["buy", "sell"]: - # Debug: Log self attributes BEFORE injection - print(f"[ContextInjector.__call__] ENTRY: id={id(self)}, self.signature={self.signature}, self.today_date={self.today_date}, self.job_id={self.job_id}, self.session_id={self.session_id}, self.trading_day_id={self.trading_day_id}") - print(f"[ContextInjector.__call__] Args BEFORE injection: {request.args}") - # ALWAYS inject/override context parameters (don't trust AI-provided values) request.args["signature"] = self.signature request.args["today_date"] = self.today_date @@ -66,8 +62,5 @@ class ContextInjector: if self.trading_day_id: request.args["trading_day_id"] = self.trading_day_id - # Debug logging - print(f"[ContextInjector] Tool: {request.name}, Args after injection: {request.args}") - # Call the actual tool handler return await handler(request)