fix: KingClient 添加日志
This commit is contained in:
parent
97f8a1e143
commit
c42dafcb44
|
@ -75,6 +75,7 @@ class KingClient(HandleLogMixin):
|
||||||
if 'code' in ret:
|
if 'code' in ret:
|
||||||
if ret['code'] != 0:
|
if ret['code'] != 0:
|
||||||
if need_auth and ret['code'] in [-1, -2]: # 认证失败
|
if need_auth and ret['code'] in [-1, -2]: # 认证失败
|
||||||
|
myLogger.error(f"亚控认证失败: {url}-{ret}")
|
||||||
self._get_token()
|
self._get_token()
|
||||||
return self.request(url, method, params, json, timeout, raise_exception, need_auth)
|
return self.request(url, method, params, json, timeout, raise_exception, need_auth)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue