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; break 'outer;
} }
Err(err) if err.kind() == ErrorKind::UnexpectedEof => { Err(err) if err.kind() == ErrorKind::UnexpectedEof => {
increment_counter(self.counter); tracing::error!("Process socket got error: {err:?}");
return Ok(())}, increment_counter(self.counter);
Err(e) => return Err(e), return Ok(())
}
Err(e) => {
tracing::error!("Process socket got error: {e:?}");
return Err(e)
}
} }
} }
increment_counter(self.counter); increment_counter(self.counter);