25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

ejabberd_stun: Rename Logger filter

Don't overwrite the Logger filter added by the 'stun' application (which
appends metadata to STUN/TURN log messages).

Closes processone/stun#31.
This commit is contained in:
Holger Weiss 2020-10-01 16:37:36 +02:00
parent df58ee924f
commit e4d6007293

View File

@ -212,8 +212,8 @@ init_logger() ->
ok.
-else.
init_logger() ->
case logger:add_primary_filter(stun, {fun ?MODULE:stun_filter/2,
?STUN_MAX_LOG_LEVEL}) of
case logger:add_primary_filter(ejabberd_stun, {fun ?MODULE:stun_filter/2,
?STUN_MAX_LOG_LEVEL}) of
ok ->
ok;
{error, {already_exist, _}} ->