Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wuxiao
/
yoho-phplog
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wuxiao
2016-07-13 15:21:05 +0800
Commit
0e85997e4d223a5c15b9c502cbc8837f42c5c767
1 parent
25ad4235
添加调试信息
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
GoMqClient.py
__init__.py
GoMqClient.py
View file @
0e85997
...
...
@@ -75,6 +75,9 @@ while True:
measurement
=
Config
.
info_channel
+
time
.
strftime
(
'_
%
Y
%
m
%
d'
)
json_body
=
dict
(
data
[
'data'
],
**
data
[
'tags'
])
if
json_body
[
'message'
]
==
'sdhfsodifjoisdfsoi'
:
print
json_body
middleware
=
'mongodb'
...
...
__init__.py
View file @
0e85997
...
...
@@ -93,6 +93,7 @@ def connect_close():
#数据入库定时器
def
data_pull_timer
(
queue
):
data_pull
(
queue
,
'Timer'
)
print
'new Timer'
Timer
(
Config
.
multi_insert_timeout
,
data_pull_timer
,[
queue
])
.
start
()
#数据入库
...
...
Please
register
or
login
to post a comment