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:
Wolfgang Bumiller 2024-09-05 13:58:26 +02:00
parent ec1e78a4df
commit c3b7862be5
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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);
} }