Authored by wuxiao

添加调试信息

@@ -92,12 +92,11 @@ def connect_close(): @@ -92,12 +92,11 @@ def connect_close():
92 92
93 #数据入库定时器 93 #数据入库定时器
94 def data_pull_timer(insert_data): 94 def data_pull_timer(insert_data):
95 - print insert_data 95 + print time.time()
96 for middleware,dbs in insert_data.items(): 96 for middleware,dbs in insert_data.items():
97 for db,measurements in dbs.items(): 97 for db,measurements in dbs.items():
98 for measurement,queue in measurements.items(): 98 for measurement,queue in measurements.items():
99 - print queue  
100 - #data_pull(queue,'Timer') 99 + data_pull(queue,'Timer')
101 Timer(Config.multi_insert_timeout,data_pull_timer,[insert_data]).start() 100 Timer(Config.multi_insert_timeout,data_pull_timer,[insert_data]).start()
102 101
103 #数据入库 102 #数据入库