other: 日志调用修改

This commit is contained in:
kercylan98 2023-11-13 11:19:28 +08:00
parent a9955c64b3
commit dd3f3ede07
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package concurrent
import (
"github.com/kercylan98/minotaur/utils/log"
"go.uber.org/zap"
"sync"
"time"
)
@ -76,7 +75,7 @@ func (slf *Pool[T]) Get() T {
if !slf.silent {
now := time.Now().Unix()
if now-slf.warn >= 1 {
log.Warn("Pool", log.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"), zap.Stack("stack"))
log.Warn("Pool", log.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"), log.Stack("stack"))
slf.warn = now
}
}