Skip to content

Commit 0bf0610

Browse files
committed
idalloc: change logging channel
1 parent ad0ffdc commit 0bf0610

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kv/kvserver/idalloc/id_alloc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)