Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a8f073

Browse files
committed
记录日志
1 parent 6a15234 commit 7a8f073

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/logic/searcher.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ func (self SearcherLogic) IndexingArticle(isAll bool) {
6666
}
6767

6868
for _, article := range articleList {
69+
logger.Infoln("deal article_id:", article.Id)
70+
6971
if id < article.Id {
7072
id = article.Id
7173
}
@@ -127,6 +129,8 @@ func (self SearcherLogic) IndexingTopic(isAll bool) {
127129
}
128130

129131
for _, topic := range topicList {
132+
logger.Infoln("deal topic_id:", topic.Tid)
133+
130134
if id < topic.Tid {
131135
id = topic.Tid
132136
}
@@ -187,6 +191,8 @@ func (self SearcherLogic) IndexingResource(isAll bool) {
187191
}
188192

189193
for _, resource := range resourceList {
194+
logger.Infoln("deal resource_id:", resource.Id)
195+
190196
if id < resource.Id {
191197
id = resource.Id
192198
}
@@ -236,6 +242,8 @@ func (self SearcherLogic) IndexingOpenProject(isAll bool) {
236242
}
237243

238244
for _, project := range projectList {
245+
logger.Infoln("deal project_id:", project.Id)
246+
239247
if id < project.Id {
240248
id = project.Id
241249
}

0 commit comments

Comments
 (0)