From 1bc2c8cbb16f0186953dbe5b7eb71660e1e3c5f7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 2 Sep 2015 13:46:03 +0200 Subject: [PATCH] Add verification of hide_sensitive_log_data global option --- src/ejabberd_config.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index e17685810..5b97710a8 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -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().