Przeglądaj źródła

修改日志打印

zhangdongming 1 rok temu
rodzic
commit
393b04c8f5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -172,7 +172,7 @@ def update_device_shadow(request):
         LOGGER.info('***设备影子保存成功{}'.format(uid))
         return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': {}})
     except Exception as e:
-        LOGGER.info('更新设备影子异常: {}'.format(repr(e)))
+        LOGGER.info('更新设备影子异常: errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
         return JsonResponse(status=200, data={'code': 1000001, 'update_shadow_error': repr(e)})