]> git.proxmox.com Git - proxmox-backup.git/commitdiff
client: log index.json upload only when verbose
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Jul 2020 08:04:36 +0000 (10:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Jul 2020 08:28:38 +0000 (10:28 +0200)
I mean the user expects that we know what archives, fidx or didx, are
in a backup, so this is internal info and should not be logged by
default

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/proxmox-backup-client.rs

index 18e07251a36ee43f299275f89fd74cc6b4e13c41..32483c004b5bc0c704e24ad8d19c703ba6f16597 100644 (file)
@@ -1137,7 +1137,7 @@ async fn create_backup(
         .map_err(|err| format_err!("unable to format manifest - {}", err))?;
 
 
-    println!("Upload index.json to '{}'", repo);
+    if verbose { println!("Upload index.json to '{}'", repo) };
     client
         .upload_blob_from_data(manifest.into_bytes(), MANIFEST_BLOB_NAME, true, false)
         .await?;