mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Add verification of hide_sensitive_log_data global option
This commit is contained in:
parent
eebd4bbd8f
commit
1bc2c8cbb1
@ -1164,6 +1164,8 @@ emit_deprecation_warning(Module, NewModule) ->
|
|||||||
[Module, NewModule])
|
[Module, NewModule])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
opt_type(hide_sensitive_log_data) ->
|
||||||
|
fun (H) when is_boolean(H) -> H end;
|
||||||
opt_type(hosts) ->
|
opt_type(hosts) ->
|
||||||
fun(L) when is_list(L) ->
|
fun(L) when is_list(L) ->
|
||||||
lists:map(
|
lists:map(
|
||||||
@ -1174,7 +1176,7 @@ opt_type(hosts) ->
|
|||||||
opt_type(language) ->
|
opt_type(language) ->
|
||||||
fun iolist_to_binary/1;
|
fun iolist_to_binary/1;
|
||||||
opt_type(_) ->
|
opt_type(_) ->
|
||||||
[hosts, language].
|
[hide_sensitive_log_data, hosts, language].
|
||||||
|
|
||||||
-spec may_hide_data(string()) -> string();
|
-spec may_hide_data(string()) -> string();
|
||||||
(binary()) -> binary().
|
(binary()) -> binary().
|
||||||
|
Loading…
Reference in New Issue
Block a user