refactor(run_agent): drop unused logger in api_request_hooks

This commit is contained in:
Teknium
2026-09-02 11:52:31 -07:00
parent 64cc8cf0d3
commit d69afde2d3
-4
View File
@@ -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)."""