Explorar o código

修改日志打印

zhangdongming hai 1 ano
pai
achega
393b04c8f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)})