File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ type Options struct {
4343 Incrementer Incrementer
4444 BlockSize int64
4545 Stopper * stop.Stopper
46- Fatalf func (context.Context , string , ... interface {}) // defaults to log.Dev .Fatalf
46+ Fatalf func (context.Context , string , ... interface {}) // defaults to log.KvExec .Fatalf
4747}
4848
4949// An Allocator is used to increment a key in allocation blocks of arbitrary
@@ -66,7 +66,7 @@ func NewAllocator(opts Options) (*Allocator, error) {
6666 return nil , errors .Errorf ("blockSize must be a positive integer: %d" , opts .BlockSize )
6767 }
6868 if opts .Fatalf == nil {
69- opts .Fatalf = log .Dev .Fatalf
69+ opts .Fatalf = log .KvExec .Fatalf
7070 }
7171 opts .AmbientCtx .AddLogTag ("idalloc" , nil )
7272 return & Allocator {
@@ -112,7 +112,7 @@ func (ia *Allocator) start() {
112112 break
113113 }
114114
115- log .Dev .Warningf (
115+ log .KvExec .Warningf (
116116 ctx ,
117117 "unable to allocate %d ids from %s: %+v" ,
118118 ia .opts .BlockSize ,
You can’t perform that action at this time.
0 commit comments