fix(logging): 放宽请求参数日志展开深度
This commit is contained in:
1 parent
f3ddb5ecf4
commit
69dcf2fe0c
1 file changed
+2
-2
@@ -38,8 +38,8 @@ def _short_text(value: Any, max_len: int = 240) -> Any:
|
||||
|
||||
|
||||
def _sanitize_payload(value: Any, depth: int = 0) -> Any:
|
||||
if depth > 4:
|
||||
return "..."
|
||||
if depth > 8:
|
||||
return "<depth_limited>"
|
||||
if isinstance(value, dict):
|
||||
result = {}
|
||||
for key, item in value.items():
|
||||
|
||||
Reference in new issue
Block a user