client: backup writer: make backup info output more concise
With the additional output in case of split pxar archives, the upload statistics logged by the backup writer following a backup are crowded and hard to read. Make the output more concise by merging the currenlty 2 lines per upload stream, shown as e.g.: ``` data.ppxar: had to backup 4 MiB of 10.943 GiB (compressed 159 B) in 49.30s data.ppxar: average backup speed: 83.09 KiB/s ``` into a single line, shown as e.g.: ``` data.ppxar: had to back up 4 MiB of 10.943 GiB (159 B compressed) in 49.30 s (average 83.09 KiB/s) ``` Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
5b91d85150
commit
7401be7e96
@ -371,14 +371,9 @@ impl BackupWriter {
|
||||
let size_dirty: HumanByte = size_dirty.into();
|
||||
let size_compressed: HumanByte = upload_stats.size_compressed.into();
|
||||
log::info!(
|
||||
"{}: had to backup {} of {} (compressed {}) in {:.2}s",
|
||||
archive,
|
||||
size_dirty,
|
||||
size,
|
||||
size_compressed,
|
||||
"{archive}: had to backup {size_dirty} of {size} (compressed {size_compressed}) in {:.2} s (average {speed}/s)",
|
||||
upload_stats.duration.as_secs_f64()
|
||||
);
|
||||
log::info!("{}: average backup speed: {}/s", archive, speed);
|
||||
} else {
|
||||
log::info!("Uploaded backup catalog ({})", size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user