other: 日志调用修改
This commit is contained in:
parent
a9955c64b3
commit
dd3f3ede07
|
@ -2,7 +2,6 @@ package concurrent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kercylan98/minotaur/utils/log"
|
"github.com/kercylan98/minotaur/utils/log"
|
||||||
"go.uber.org/zap"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -76,7 +75,7 @@ func (slf *Pool[T]) Get() T {
|
||||||
if !slf.silent {
|
if !slf.silent {
|
||||||
now := time.Now().Unix()
|
now := time.Now().Unix()
|
||||||
if now-slf.warn >= 1 {
|
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
|
slf.warn = now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue