api: make some workers log on CLI
some workers did not log when called via cli Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
f54634a890
commit
bfa942c0cf
@ -952,11 +952,13 @@ pub fn prune_datastore(
|
||||
|
||||
let datastore = DataStore::lookup_datastore(&store)?;
|
||||
|
||||
let to_stdout = rpcenv.env_type() == RpcEnvironmentType::CLI;
|
||||
|
||||
let upid_str = WorkerTask::new_thread(
|
||||
"prune",
|
||||
Some(store.clone()),
|
||||
auth_id.clone(),
|
||||
false,
|
||||
to_stdout,
|
||||
move |worker| crate::server::prune_datastore(
|
||||
worker.clone(),
|
||||
auth_id,
|
||||
|
Reference in New Issue
Block a user