完整的信息输出

This commit is contained in:
eson 2023-11-14 11:54:14 +08:00
parent 6dd44fff53
commit ff7934e1c6

View File

@ -119,9 +119,10 @@ func queueHandler(w http.ResponseWriter, r *http.Request) {
return
}
countPutPop.Use(func(item *CountPutPop) {
item.PopCount++
item.SelfCount[raddr.String()]++
countPutPop.Use(func(citem *CountPutPop) {
citem.PopCount++
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)
// 打印消息