Skip to content

Commit

Permalink
0.32.12a6. Verify 日志优化
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Mar 23, 2024
1 parent 0b9da08 commit 8914ee6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions alist_sdk/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ def _verify(self, local_s, res: httpx.Response):
self.locals.update(local_s)
self.request = res.request
url = res.request.url.path
logger.debug(
f"收到响应: {url}[{res.status_code}]\n "
f"{json.dumps(res.text, indent=2, ensure_ascii=False)}"
)
logger.debug(f"收到响应: {url}[{res.status_code}] {res.text}")
try:
res_dict = res.json()
resp = Resp.model_validate(res_dict)
Expand All @@ -89,7 +86,7 @@ def _verify(self, local_s, res: httpx.Response):
f">>> {local_s = }\n"
f"========= Request End =========\n"
f"<<< {res_headers}\n\n"
f"{res.text} \n"
f"{json.dumps(res.json(), indent=2, ensure_ascii=False)} \n"
f"========= Resp End =========",
)
raise _e
Expand Down
3 changes: 2 additions & 1 deletion alist_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@
3. 修复AlistPath.stat() & AlistPath.raw_stat() 的缓存问题。
4. 修复tools.config.import_configs_from_dict无法忽略本地存储的错误。
5. Client Put AsTask 修复
6. Verify 日志优化
"""

__version__ = "0.32.12a5"
__version__ = "0.32.12a6"

ALIST_VERSION = "v3.32.0"

0 comments on commit 8914ee6

Please sign in to comment.