Skip to content

The agent that grows with you

refactor(run_agent): drop unused logger in api_request_hooks

Tekniumd69afde2d399
diff --git a/agent/api_request_hooks.py b/agent/api_request_hooks.py
index 04e8d78977d..ae58a2013e8 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)."""