updated ipblc with zmq error printing
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2022-07-10 18:49:49 +02:00
parent 8d6e2f72bf
commit aa10a1ca87
2 changed files with 13 additions and 7 deletions

View File

@ -40,7 +40,7 @@ OPTIONS:
- ✅ Config centralization (Main config in ipbl) - ✅ Config centralization (Main config in ipbl)
- ✅ Handles date in log - ✅ Handles date in log
- ✅ fine grain file opening - ✅ Fine grain file opening
- ✅ Handle zeromq data transfer - ✅ Handle zeromq data transfer
- ✅ Code optimizations (WIP) - ✅ Code optimizations (WIP)
- ✅ Error handing when fetching config - ✅ Error handing when fetching config
@ -48,10 +48,10 @@ OPTIONS:
### Date formats ### Date formats
``` ```
nginx: 2022-02-09T10:05:02+01:00 nginx: 2006-01-02T15:04:05+01:00
ssh: 2022-02-09T09:29:15.797469+01:00 ssh: 2006-01-02T15:04:05.000000+01:00
openvpn: 2022-02-09 09:58:59 openvpn: 2006-01-02 15:04:05
mail: 2022-02-09T09:59:31.228303+01:00 mail: 2006-01-02T15:04:05.000000+01:00
``` ```
## License ## License

View File

@ -60,9 +60,15 @@ async fn listenpubsub(ctx: &Arc<Mutex<Context>>, txpubsub: Sender<IpData>, socke
let msgs: Option<String> = match socket.recv_string(0) { let msgs: Option<String> = match socket.recv_string(0) {
Ok(s) => match s { Ok(s) => match s {
Ok(ss) => Some(ss), Ok(ss) => Some(ss),
Err(_) => None, Err(e) => {
println!("{e:?}");
None
}
}, },
Err(_) => None, Err(e) => {
println!("{e:?}");
None
}
}; };
match msgs { match msgs {
Some(ss) => { Some(ss) => {