From 75104020fcc700709986a2f280ad7b38a0bcf324 Mon Sep 17 00:00:00 2001 From: midefos Date: Sun, 22 Sep 2024 03:05:56 +0200 Subject: [PATCH] adding ban server error log --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index bcdaf05..9d293eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,9 @@ async fn main() { ssh_auth_log, iptables_save, } => { - let _ = start_ban_server(ssh_auth_log, iptables_save).await; + if let Err(error) = start_ban_server(ssh_auth_log, iptables_save).await { + error!("ban server: {error}"); + } } Cli::ListBannedIps { docker } => { println!(