File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ func (m *runtimeLoadMonitor) recordCPUUsage(ctx context.Context) {
146
146
panic (err )
147
147
}
148
148
// 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 )
150
150
}
151
151
// Convert milliseconds to nanoseconds.
152
152
totalUsageNanos := float64 (userTimeMillis * 1e6 + sysTimeMillis * 1e6 )
@@ -168,7 +168,7 @@ func (m *runtimeLoadMonitor) recordCPUCapacity(ctx context.Context) {
168
168
panic ("programming error: cpu capacity is 0" )
169
169
}
170
170
// 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" )
172
172
}
173
173
}
174
174
You can’t perform that action at this time.
0 commit comments