proxmox-rrd: use log crate instead of eprintln, avoid duplicate logs

This commit is contained in:
Dietmar Maurer committed 2021-10-06 18:19:22 +02:00
1 parent 18e8bc17e4
commit 3def6bfc64
3 files changed
+29 -17

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ impl RRDCache {
Ok(rrd) => rrd,
Err(err) => {
if err.kind() != std::io::ErrorKind::NotFound {
eprintln!("overwriting RRD file {:?}, because of load error: {}", path, err);
log::warn!("overwriting RRD file {:?}, because of load error: {}", path, err);
}
RRD::new(dst)
},