mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-05-30 03:07:25 +00:00
pxar: list stuff to stdout instead of stderr
Our tooling really needs to stop doing outputs wrong... Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ec1e78a4df
commit
c3b7862be5
@ -19,7 +19,7 @@ use pbs_client::pxar::{
|
|||||||
use pxar::EntryKind;
|
use pxar::EntryKind;
|
||||||
|
|
||||||
use proxmox_human_byte::HumanByte;
|
use proxmox_human_byte::HumanByte;
|
||||||
use proxmox_log::{debug, enabled, error, info, init_cli_logger, Level};
|
use proxmox_log::{debug, enabled, error, init_cli_logger, Level};
|
||||||
use proxmox_router::cli::*;
|
use proxmox_router::cli::*;
|
||||||
use proxmox_schema::api;
|
use proxmox_schema::api;
|
||||||
|
|
||||||
@ -557,11 +557,11 @@ fn dump_archive(archive: String, payload_input: Option<String>) -> Result<(), Er
|
|||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
debug!("{}", format_single_line_entry(&entry));
|
println!("{}", format_single_line_entry(&entry));
|
||||||
} else {
|
} else {
|
||||||
match entry.kind() {
|
match entry.kind() {
|
||||||
EntryKind::Version(_) | EntryKind::Prelude(_) => continue,
|
EntryKind::Version(_) | EntryKind::Prelude(_) => continue,
|
||||||
_ => info!("{:?}", entry.path()),
|
_ => println!("{:?}", entry.path()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,5 +215,5 @@ fn pxar_list_with_payload_input() {
|
|||||||
\"/folder_9/file_9\"
|
\"/folder_9/file_9\"
|
||||||
";
|
";
|
||||||
|
|
||||||
assert_eq!(expected.as_bytes(), output.stderr);
|
assert_eq!(expected.as_bytes(), output.stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user