完整的信息输出
This commit is contained in:
parent
6dd44fff53
commit
ff7934e1c6
|
@ -119,9 +119,10 @@ func queueHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
countPutPop.Use(func(item *CountPutPop) {
|
countPutPop.Use(func(citem *CountPutPop) {
|
||||||
item.PopCount++
|
citem.PopCount++
|
||||||
item.SelfCount[raddr.String()]++
|
citem.SelfCount[raddr.String()]++
|
||||||
|
log.Printf("all put %d, all pop %d source[%s] -> self[%s] pop %d\n", citem.PutCount, citem.PopCount, item.Source, raddr.String(), citem.SelfCount[raddr.String()])
|
||||||
})
|
})
|
||||||
logIntervalTimeHandler.Notify(countPutPop)
|
logIntervalTimeHandler.Notify(countPutPop)
|
||||||
// 打印消息
|
// 打印消息
|
||||||
|
|
Loading…
Reference in New Issue
Block a user