]> granicus.if.org Git - ejabberd/commitdiff
Switch mod_fail2ban log messages to warning level
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Wed, 19 Sep 2018 16:33:33 +0000 (19:33 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Wed, 19 Sep 2018 16:33:33 +0000 (19:33 +0300)
src/mod_fail2ban.erl

index 3e6fec62f1e58b276b2384a61a52da65e6d704bc..0250392a303701c1ddf905e3dfb219b6cfb167a0 100644 (file)
@@ -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)}.