25
1
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:
Badlop 2015-09-02 13:46:03 +02:00
parent eebd4bbd8f
commit 1bc2c8cbb1

View File

@ -1164,6 +1164,8 @@ emit_deprecation_warning(Module, NewModule) ->
[Module, NewModule])
end.
opt_type(hide_sensitive_log_data) ->
fun (H) when is_boolean(H) -> H end;
opt_type(hosts) ->
fun(L) when is_list(L) ->
lists:map(
@ -1174,7 +1176,7 @@ opt_type(hosts) ->
opt_type(language) ->
fun iolist_to_binary/1;
opt_type(_) ->
[hosts, language].
[hide_sensitive_log_data, hosts, language].
-spec may_hide_data(string()) -> string();
(binary()) -> binary().