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
f1bc28ed5f
commit
75b1706724
@ -1,5 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from enum import StrEnum
|
||||
from typing import Any, Generic, TypeVar
|
||||
|
||||
@ -13,6 +15,8 @@ from services.enterprise.base import EnterpriseRequest
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class _RBACModel(BaseModel):
|
||||
model_config = ConfigDict(populate_by_name=True, extra="ignore")
|
||||
@ -693,6 +697,7 @@ class RBACService:
|
||||
policy_id: str,
|
||||
payload: ReplaceBindings,
|
||||
) -> AccessMatrixItem:
|
||||
logger.info(f"replace bindings {policy_id} {payload}")
|
||||
data = _inner_call(
|
||||
"PUT",
|
||||
f"{_INNER_PREFIX}/apps/access-policy/bindings",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user