Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
vest
Commits
11f3a50a
Commit
11f3a50a
authored
5 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
parent
02aaf050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
consum.py
moment/views/consum.py
+7
-3
No files found.
moment/views/consum.py
View file @
11f3a50a
...
...
@@ -54,14 +54,18 @@ def kafka_consum(topic_name=None):
if
card_info
[
'action_type'
]
==
"comment"
:
auto_comment_user
(
card_info
,
after_day
=
True
)
logging
.
info
(
"auto_comment_user子函数消费处理耗时:
%
f"
%
(
time
.
time
()
-
begin
))
logging
.
info
(
"当前卡片ID:
%
s,auto_comment_user子函数消费处理耗时:
%
f"
%
(
card_info
[
'card_id'
],
time
.
time
()
-
begin
))
elif
card_info
[
'action_type'
]
==
"click"
:
auto_click_user
(
card_info
,
after_day
=
True
)
logging
.
info
(
"auto_click_user子函数消费处理耗时:
%
f"
%
(
time
.
time
()
-
begin
))
logging
.
info
(
"当前卡片ID:
%
s,auto_click_user子函数消费处理耗时:
%
f"
%
(
card_info
[
'card_id'
],
time
.
time
()
-
begin
))
elif
card_info
[
'action_type'
]
==
"follow"
:
auto_follow_user
(
card_info
,
after_day
=
True
)
logging
.
info
(
"auto_follow_user子函数消费处理耗时:
%
f"
%
(
time
.
time
()
-
begin
))
logging
.
info
(
"当前卡片ID:
%
s,auto_follow_user子函数消费处理耗时:
%
f"
%
(
card_info
[
'card_id'
],
time
.
time
()
-
begin
))
else
:
pass
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment