worker task: drop debug prints

they are not useful anymore, rather noisy

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-31 19:46:54 +01:00
parent f254a27071
commit 0bb74e54b1

View File

@ -602,18 +602,9 @@ struct WorkerTaskData {
pub abort_listeners: Vec<oneshot::Sender<()>>, pub abort_listeners: Vec<oneshot::Sender<()>>,
} }
impl Drop for WorkerTask {
fn drop(&mut self) {
println!("unregister worker");
}
}
impl WorkerTask { impl WorkerTask {
pub fn new(worker_type: &str, worker_id: Option<String>, auth_id: Authid, to_stdout: bool) -> Result<Arc<Self>, Error> { pub fn new(worker_type: &str, worker_id: Option<String>, auth_id: Authid, to_stdout: bool) -> Result<Arc<Self>, Error> {
println!("register worker");
let upid = UPID::new(worker_type, worker_id, auth_id)?; let upid = UPID::new(worker_type, worker_id, auth_id)?;
let task_id = upid.task_id; let task_id = upid.task_id;
@ -692,8 +683,6 @@ impl WorkerTask {
) -> Result<String, Error> ) -> Result<String, Error>
where F: Send + UnwindSafe + 'static + FnOnce(Arc<WorkerTask>) -> Result<(), Error> where F: Send + UnwindSafe + 'static + FnOnce(Arc<WorkerTask>) -> Result<(), Error>
{ {
println!("register worker thread");
let worker = WorkerTask::new(worker_type, worker_id, auth_id, to_stdout)?; let worker = WorkerTask::new(worker_type, worker_id, auth_id, to_stdout)?;
let upid_str = worker.upid.to_string(); let upid_str = worker.upid.to_string();