Преглед изворни кода

Merge branch 'master' of http://local.beijingyongan.com:3000/linux-dev/ya-serv

lixioayao пре 6 година
родитељ
комит
6bdfb9b8ea
2 измењених фајлова са 7 додато и 3 уклоњено
  1. 5 2
      main.cpp
  2. 2 1
      module_service/module_meta_date_changed.cpp

+ 5 - 2
main.cpp

@@ -169,7 +169,7 @@ int main(int argc ,char * argv[])
     is.init();
 
 	card_path::init();
-	test_find_path(point(4600,-75),point(4727,-90));
+//	test_find_path(point(4600,-75),point(4727,-90));
 
     module_mgr::start();
     web_connect::start_beatheart_monitor();
@@ -178,7 +178,8 @@ int main(int argc ,char * argv[])
     net_service mh;
     int port=config.get("service.port",4000);
 
-    printf("\nservice_handle::instance(&mh)->run(%d); \n",port);
+    log_info("service_handle::instance(&mh)->run(%d)",port);
+    std_info("service_handle::instance(&mh)->run(%d)",port);
     service_handle::instance(&mh)->run(port);
     
     sDBConnPool.Close();
@@ -188,3 +189,5 @@ int main(int argc ,char * argv[])
 
     return 0;
 }
+
+

+ 2 - 1
module_service/module_meta_date_changed.cpp

@@ -22,7 +22,6 @@ void module_meta_date_changed::accept(sio::message::ptr const& data)
         return;
     }
 
-    std_debug("基础数据 receive meta_data_changed: %s", name.c_str());
 
     int64_t id=-1;
     tool_map::try_get_value(id, JSON_KEY_ID, data);
@@ -39,6 +38,8 @@ void module_meta_date_changed::accept(sio::message::ptr const& data)
             return;
         }
 
+		log_info("基础数据 receive meta_data_changed: %s, id=%d, op_type=%d", name.c_str(), id, edit_type_id);
+
         if(JSON_KEY_NAME_VEHICLE == name || JSON_KEY_NAME_VEHICLE_EXTEND == name)
         {
             deal_call_edit_vehicle(id, edit_type_id);