From 6d13120e69cee055cbd02287fef2224bbc3f9c6d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 5 May 2020 01:02:50 +0200 Subject: [PATCH] mod_stun_disco: Log discovered services on startup If the 'offer_local_services' option isn't set to 'false', log an [info] message for each auto-discovered ejabberd_stun listener on startup (and on configuration reload). --- src/mod_stun_disco.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod_stun_disco.erl b/src/mod_stun_disco.erl index 0c03be284..45beed7c1 100644 --- a/src/mod_stun_disco.erl +++ b/src/mod_stun_disco.erl @@ -609,16 +609,16 @@ parse_listener({{Port, _Addr, Transport}, ?STUN_MODULE, Opts}) -> type = stun}, case Opts of #{use_turn := true} -> - ?DEBUG("Found STUN/TURN listener: ~s:~B (~s)", - [misc:ip_to_list(Addr), Port, Transport]), + ?INFO_MSG("Going to offer STUN/TURN listener: ~s:~B (~s)", + [misc:ip_to_list(Addr), Port, Transport]), [StunService, #service{host = Host, port = Port, transport = Transport, restricted = is_restricted(Opts), type = turn}]; #{use_turn := false} -> - ?DEBUG("Found STUN listener: ~s:~B (~s)", - [misc:ip_to_list(Addr), Port, Transport]), + ?INFO_MSG("Going to offer STUN listener: ~s:~B (~s)", + [misc:ip_to_list(Addr), Port, Transport]), [StunService] end end;