Browse Source

Merge branch 'master' of chensongchao/ya-serv into master

zzj 6 years ago
parent
commit
19b363b528
1 changed files with 3 additions and 1 deletions
  1. 3 1
      module_service/module_web.cpp

+ 3 - 1
module_service/module_web.cpp

@@ -103,7 +103,9 @@ void module_web::run()
     {
         _delete_end(arr);
 
-        swsClientMgr.send(JSON_CMD_VALUE_PUSH, event_list::evs_to_json(arr));
+        std::string tmp = event_list::evs_to_json(arr);
+        swsClientMgr.send(JSON_CMD_VALUE_PUSH, tmp);
+        log_info("发送给web的告警json:%s", tmp.c_str());
     }
 
     std::string help = module_call_help::get_json_help();