Skip to content

Commit

Permalink
Report get_cpufreq_avg failure as warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Teddy Astie <[email protected]>
  • Loading branch information
TSnake41 committed Jan 15, 2025
1 parent dff3385 commit cc53ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/xcp-metrics-plugin-xen/src/plugin/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl XenMetric for PCpuFreq {
// Ignore all failing reads.
hyp.get_cpufreq_avgfreq(cpuid)
.inspect_err(|e| {
tracing::error!("get_cpufreq_avg failure for cpuid:{cpuid}: {e}")
tracing::warn!("get_cpufreq_avg failure for cpuid:{cpuid}: {e}")
})
.ok()
.map(|freq| (cpuid, freq))
Expand Down

0 comments on commit cc53ebf

Please sign in to comment.