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 {
43
43
Incrementer Incrementer
44
44
BlockSize int64
45
45
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
47
47
}
48
48
49
49
// An Allocator is used to increment a key in allocation blocks of arbitrary
@@ -66,7 +66,7 @@ func NewAllocator(opts Options) (*Allocator, error) {
66
66
return nil , errors .Errorf ("blockSize must be a positive integer: %d" , opts .BlockSize )
67
67
}
68
68
if opts .Fatalf == nil {
69
- opts .Fatalf = log .Dev .Fatalf
69
+ opts .Fatalf = log .KvExec .Fatalf
70
70
}
71
71
opts .AmbientCtx .AddLogTag ("idalloc" , nil )
72
72
return & Allocator {
@@ -112,7 +112,7 @@ func (ia *Allocator) start() {
112
112
break
113
113
}
114
114
115
- log .Dev .Warningf (
115
+ log .KvExec .Warningf (
116
116
ctx ,
117
117
"unable to allocate %d ids from %s: %+v" ,
118
118
ia .opts .BlockSize ,
You can’t perform that action at this time.
0 commit comments