From d69afde2d399184f3f7ce5395b245c57f4e54e34 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 11:52:31 -0700 Subject: [PATCH] refactor(run_agent): drop unused logger in api_request_hooks --- agent/api_request_hooks.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/api_request_hooks.py b/agent/api_request_hooks.py index 04e8d78977..ae58a2013e 100644 --- a/agent/api_request_hooks.py +++ b/agent/api_request_hooks.py @@ -4,7 +4,6 @@ JSON-safe coercion, secret-key redaction, size caps, and the ``api_request_error Extracted from ``run_agent.py``; every method resolves through ``AIAgent``'s MRO unchanged. """ import json -import logging import os import time from types import SimpleNamespace @@ -12,9 +11,6 @@ from typing import Any, Dict, Optional from agent.usage_pricing import normalize_usage -# Same logger name as the origin module so log records / caplog filters are unchanged. -logger = logging.getLogger("run_agent") - class ApiRequestHooksMixin: """Hook payload sanitising + ``api_request_error`` dispatch (see module docstring)."""