Skip to content

Commit a4ea235

Browse files
committed
增加 hub 动态注册 debug 日志
1 parent e60453b commit a4ea235

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hub/hub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ def dynregDevice(self, timeout=10, dynregDomain=None):
910910
with urllib.request.urlopen(req, timeout=timeout, context=context) as url_file:
911911
reply_data = url_file.read().decode('utf-8')
912912
reply_obj = json.loads(reply_data)
913+
self._logger.debug(f"动态注册请求: {data}\n响应: {reply_obj}\n")
913914
resp = reply_obj['Response']
914915
if 'Len' in resp and resp['Len'] > 0:
915916
reply_obj_data = reply_obj['Response']["Payload"]

0 commit comments

Comments
 (0)