mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 00:33:37 +08:00
chore: add some debug log
This commit is contained in:
parent
691cdf654c
commit
9e8108839e
@ -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.
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user