more verbose errors

This commit is contained in:
Noa Aarts 2024-12-11 20:56:33 +01:00
parent f0bd6020a2
commit 5b5b2849b8
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -197,9 +197,14 @@ where
break 'outer;
}
Err(err) if err.kind() == ErrorKind::UnexpectedEof => {
increment_counter(self.counter);
return Ok(())},
Err(e) => return Err(e),
tracing::error!("Process socket got error: {err:?}");
increment_counter(self.counter);
return Ok(())
}
Err(e) => {
tracing::error!("Process socket got error: {e:?}");
return Err(e)
}
}
}
increment_counter(self.counter);