Explorar o código

打印日志4

tanghongbin %!s(int64=5) %!d(string=hai) anos
pai
achega
1ba36aa3f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -65,7 +65,7 @@ def update_device_shadow(request):
     etk = request_dict.get('etk', None)
     eto = ETkObject(etk)
     uid = eto.uid
-    log = 'push----------{time}'.format(time=time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime()))
+    log = 'shadow----------{time}'.format(time=time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime()))
     log += '\n'
     log += '\tuid=' + uid
     LogUtil.write_log(log=log)