Skip to content

Commit 5b38b5b

Browse files
committed
load: change logging channel
1 parent 03c72e4 commit 5b38b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kv/kvserver/load/node_capacity_provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (m *runtimeLoadMonitor) recordCPUUsage(ctx context.Context) {
146146
panic(err)
147147
}
148148
// TODO(wenyihu6): we should revisit error handling here for production.
149-
log.Dev.Warningf(ctx, "failed to get cpu usage: %v", err)
149+
log.KvDistribution.Warningf(ctx, "failed to get cpu usage: %v", err)
150150
}
151151
// Convert milliseconds to nanoseconds.
152152
totalUsageNanos := float64(userTimeMillis*1e6 + sysTimeMillis*1e6)
@@ -168,7 +168,7 @@ func (m *runtimeLoadMonitor) recordCPUCapacity(ctx context.Context) {
168168
panic("programming error: cpu capacity is 0")
169169
}
170170
// TODO(wenyihu6): we should pass in an actual context here.
171-
log.Dev.Warningf(ctx, "failed to get cpu capacity")
171+
log.KvDistribution.Warningf(ctx, "failed to get cpu capacity")
172172
}
173173
}
174174

0 commit comments

Comments
 (0)