]> granicus.if.org Git - ejabberd/commitdiff
Add verification of hide_sensitive_log_data global option
authorBadlop <badlop@process-one.net>
Wed, 2 Sep 2015 11:46:03 +0000 (13:46 +0200)
committerBadlop <badlop@process-one.net>
Wed, 2 Sep 2015 11:46:03 +0000 (13:46 +0200)
src/ejabberd_config.erl

index e17685810730d972fe1f076e4ea27191c98a0f59..5b97710a8d045e2647b01d2599e1139f37dba720 100644 (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().