client/pull: log how many groups to pull were found
if no groups were found, the task log was very confusing as it contained no real information why nothing was synced, e.g.: Starting datastore sync job 'remote:datastore:local-datastore:s-79412799-e6ee' Sync datastore 'local-datastore' from 'remote/datastore' sync job 'remote:datastore:local-datastore:s-79412799-e6ee' end TASK OK this patch simply logs how many groups were found and are about to be synced: Starting datastore sync job 'remote:datastore:local-datastore:s-79412799-e6ee' Sync datastore 'local-datastore' from 'remote/datastore' found 0 groups to sync sync job 'remote:datastore:local-datastore:s-79412799-e6ee' end TASK OK Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
37f1b7dd8d
commit
f6e28f4e62
@ -498,6 +498,8 @@ pub async fn pull_store(
|
||||
|
||||
let mut list: Vec<GroupListItem> = serde_json::from_value(result["data"].take())?;
|
||||
|
||||
worker.log(format!("found {} groups to sync", list.len()));
|
||||
|
||||
list.sort_unstable_by(|a, b| {
|
||||
let type_order = a.backup_type.cmp(&b.backup_type);
|
||||
if type_order == std::cmp::Ordering::Equal {
|
||||
|
Loading…
Reference in New Issue
Block a user