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

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

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)
},