mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
chore: add some debug log
This commit is contained in:
parent
691cdf654c
commit
9e8108839e
@ -66,7 +66,7 @@ class BaseRequest:
|
|||||||
continue
|
continue
|
||||||
headers[key] = value
|
headers[key] = value
|
||||||
url = f"{cls.base_url}{endpoint}"
|
url = f"{cls.base_url}{endpoint}"
|
||||||
mounts = cls._build_mounts()
|
# mounts = cls._build_mounts()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# ensure traceparent even when OTEL is disabled
|
# ensure traceparent even when OTEL is disabled
|
||||||
@ -76,7 +76,7 @@ class BaseRequest:
|
|||||||
except Exception:
|
except Exception:
|
||||||
logger.debug("Failed to generate traceparent header", exc_info=True)
|
logger.debug("Failed to generate traceparent header", exc_info=True)
|
||||||
|
|
||||||
with httpx.Client(mounts=mounts) as client:
|
with httpx.Client() as client:
|
||||||
# IMPORTANT:
|
# IMPORTANT:
|
||||||
# - In httpx, passing timeout=None disables timeouts (infinite) and overrides the library default.
|
# - 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.
|
# - 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,
|
policy_id: str,
|
||||||
payload: ReplaceBindings,
|
payload: ReplaceBindings,
|
||||||
) -> AccessMatrixItem:
|
) -> 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(
|
data = _inner_call(
|
||||||
"PUT",
|
"PUT",
|
||||||
f"{_INNER_PREFIX}/workspace/apps/access-policy/bindings",
|
f"{_INNER_PREFIX}/workspace/apps/access-policy/bindings",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user