[pbs-devel] [PATCH proxmox-backup 1/4] gc: shorten progress messages

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Nov 30 16:22:17 CET 2020


we have messages starting the phases anyway, and limit the number of
progress updates so that context remains available at all times.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 src/backup/chunk_store.rs | 2 +-
 src/backup/datastore.rs   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs
index 59719bad..34d6f655 100644
--- a/src/backup/chunk_store.rs
+++ b/src/backup/chunk_store.rs
@@ -301,7 +301,7 @@ impl ChunkStore {
                 last_percentage = percentage;
                 crate::task_log!(
                     worker,
-                    "percentage done: phase2 {}% (processed {} chunks)",
+                    "processed {}% ({} chunks)",
                     percentage,
                     chunk_count,
                 );
diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs
index 19efc23f..b199f11f 100644
--- a/src/backup/datastore.rs
+++ b/src/backup/datastore.rs
@@ -505,7 +505,7 @@ impl DataStore {
             if percentage > last_percentage {
                 crate::task_log!(
                     worker,
-                    "percentage done: phase1 {}% ({} of {} index files)",
+                    "marked {}% ({} of {} index files)",
                     percentage,
                     done,
                     image_count,
-- 
2.20.1






More information about the pbs-devel mailing list