mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Switch mod_fail2ban log messages to warning level
This commit is contained in:
parent
a2b2a27bb6
commit
ddca2e8b4a
@ -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)}.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user