chore: add some debug log

This commit is contained in:
fatelei 2026-05-11 17:43:15 +08:00
parent 691cdf654c
commit 9e8108839e
No known key found for this signature in database
GPG Key ID: 2F91DA05646F4EED
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ class BaseRequest:
continue
headers[key] = value
url = f"{cls.base_url}{endpoint}"
mounts = cls._build_mounts()
# mounts = cls._build_mounts()
try:
# ensure traceparent even when OTEL is disabled
@ -76,7 +76,7 @@ class BaseRequest:
except Exception:
logger.debug("Failed to generate traceparent header", exc_info=True)
with httpx.Client(mounts=mounts) as client:
with httpx.Client() as client:
# IMPORTANT:
# - In httpx, passing timeout=None disables timeouts (infinite) and overrides the library default.
# - To preserve httpx's default timeout behavior for existing call sites, only pass the kwarg when set.

View File

@ -916,7 +916,7 @@ class RBACService:
policy_id: str,
payload: ReplaceBindings,
) -> AccessMatrixItem:
logger.info(f"replace app bindings {policy_id} {payload}")
logger.info(f"replace app bindings {_INNER_PREFIX}/workspace/apps/access-policy/bindings {policy_id} {payload}")
data = _inner_call(
"PUT",
f"{_INNER_PREFIX}/workspace/apps/access-policy/bindings",