Commit 4c11dd06 authored by AlexStocks's avatar AlexStocks

Imp: change log

parent db91fdb6
......@@ -79,10 +79,11 @@ func (p *taskPool) run(id int) {
select {
case <-p.done:
if 0 < len(p.Q) {
log.Warn("[getty][task_pool] task %d exit now while its task length is %d greater than 0",
log.Warn("[getty][task_pool] task worker %d exit now while its task buffer length %d is greater than 0",
id, len(p.Q))
} else {
log.Info("[getty][task_pool] task worker %d exit now", id)
}
log.Info("[getty][task_pool] task %d exit now", id)
return
case t, ok = <-p.Q:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment