Skip to content

Commit

Permalink
other: 日志调用修改
Browse files Browse the repository at this point in the history
  • Loading branch information
kercylan98 committed Nov 13, 2023
1 parent a9955c6 commit dd3f3ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/concurrent/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package concurrent

import (
"github.com/kercylan98/minotaur/utils/log"
"go.uber.org/zap"
"sync"
"time"
)
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit dd3f3ed

Please sign in to comment.