refactor(run_agent): drop unused logger in api_request_hooks
This commit is contained in:
@@ -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)."""
|
||||
|
||||
Reference in New Issue
Block a user