tree-wide: prefer api-type BackupGroup for logging
together with DatastoreWithNamespace where needed, to not forget namespace information. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
eefa297aa0
commit
e13303fca6
@ -10,9 +10,9 @@ use proxmox_schema::api;
|
||||
use proxmox_sys::{task_log, task_warn, WorkerTaskContext};
|
||||
|
||||
use pbs_api_types::{
|
||||
print_ns_and_snapshot, Authid, GroupFilter, MediaPoolConfig, Operation, TapeBackupJobConfig,
|
||||
TapeBackupJobSetup, TapeBackupJobStatus, Userid, JOB_ID_SCHEMA, PRIV_DATASTORE_READ,
|
||||
PRIV_TAPE_AUDIT, PRIV_TAPE_WRITE, UPID_SCHEMA,
|
||||
print_ns_and_snapshot, Authid, DatastoreWithNamespace, GroupFilter, MediaPoolConfig, Operation,
|
||||
TapeBackupJobConfig, TapeBackupJobSetup, TapeBackupJobStatus, Userid, JOB_ID_SCHEMA,
|
||||
PRIV_DATASTORE_READ, PRIV_TAPE_AUDIT, PRIV_TAPE_WRITE, UPID_SCHEMA,
|
||||
};
|
||||
|
||||
use pbs_config::CachedUserInfo;
|
||||
@ -462,6 +462,11 @@ fn backup_worker(
|
||||
let mut need_catalog = false; // avoid writing catalog for empty jobs
|
||||
|
||||
for (group_number, group) in group_list.into_iter().enumerate() {
|
||||
let store_with_ns = DatastoreWithNamespace {
|
||||
store: datastore_name.to_owned(),
|
||||
ns: group.backup_ns().clone(),
|
||||
};
|
||||
|
||||
progress.done_groups = group_number as u64;
|
||||
progress.done_snapshots = 0;
|
||||
progress.group_snapshots = 0;
|
||||
@ -475,7 +480,12 @@ fn backup_worker(
|
||||
.collect();
|
||||
|
||||
if snapshot_list.is_empty() {
|
||||
task_log!(worker, "group {} was empty", group);
|
||||
task_log!(
|
||||
worker,
|
||||
"{}, group {} was empty",
|
||||
store_with_ns,
|
||||
group.group()
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user