From: Evgeny Khramtsov Date: Wed, 19 Sep 2018 16:33:33 +0000 (+0300) Subject: Switch mod_fail2ban log messages to warning level X-Git-Tag: 18.09~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddca2e8b4ad011cc7465e82db3dbb51a46689935;p=ejabberd Switch mod_fail2ban log messages to warning level --- 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)}.