Geal / rust-syslog

Send syslog messages from Rust
MIT License
109 stars 55 forks source link

Setting up UDP logging always succeeds #19

Closed jethrogb closed 6 years ago

jethrogb commented 7 years ago

Since binding to a UDP socket will always succeed, and it is not tested whether sending UDP packets will actually work.

Geal commented 7 years ago

it's an UDP socket, how should I test if it ever worked? I also should not impose a first log message in everybody's logs, right?

jethrogb commented 7 years ago

I believe you can try sending a datagram with no content.

Edit: I just tested this and it appears localhost writes always succeed. This issue might not be solvable.