From ddca2e8b4ad011cc7465e82db3dbb51a46689935 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Wed, 19 Sep 2018 19:33:33 +0300 Subject: Switch mod_fail2ban log messages to warning level --- src/mod_fail2ban.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mod_fail2ban.erl') diff --git a/src/mod_fail2ban.erl b/src/mod_fail2ban.erl index 3e6fec62f..0250392a3 100644 --- a/src/mod_fail2ban.erl +++ b/src/mod_fail2ban.erl @@ -168,8 +168,8 @@ log_and_disconnect(#{ip := {Addr, _}, lang := Lang} = State, Attempts, UnbanTS) "from this IP address (~s). The address " "will be unblocked at ~s UTC">>, Args = [Attempts, IP, UnbanDate], - ?INFO_MSG("Connection attempt from blacklisted IP ~s: ~s", - [IP, io_lib:fwrite(Format, Args)]), + ?WARNING_MSG("Connection attempt from blacklisted IP ~s: ~s", + [IP, io_lib:fwrite(Format, Args)]), Err = xmpp:serr_policy_violation({Format, Args}, Lang), {stop, ejabberd_c2s:send(State, Err)}. -- cgit v1.2.3