Authored by wuxiao

添加调试信息

@@ -75,6 +75,9 @@ while True: @@ -75,6 +75,9 @@ while True:
75 measurement = Config.info_channel+time.strftime('_%Y%m%d') 75 measurement = Config.info_channel+time.strftime('_%Y%m%d')
76 76
77 json_body = dict(data['data'],**data['tags']) 77 json_body = dict(data['data'],**data['tags'])
  78 +
  79 + if json_body['message'] == 'sdhfsodifjoisdfsoi':
  80 + print json_body
78 81
79 middleware = 'mongodb' 82 middleware = 'mongodb'
80 83
@@ -93,6 +93,7 @@ def connect_close(): @@ -93,6 +93,7 @@ def connect_close():
93 #数据入库定时器 93 #数据入库定时器
94 def data_pull_timer(queue): 94 def data_pull_timer(queue):
95 data_pull(queue,'Timer') 95 data_pull(queue,'Timer')
  96 + print 'new Timer'
96 Timer(Config.multi_insert_timeout,data_pull_timer,[queue]).start() 97 Timer(Config.multi_insert_timeout,data_pull_timer,[queue]).start()
97 98
98 #数据入库 99 #数据入库