24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

Better formatting of configuration problem log message

This commit is contained in:
Evgeniy Khramtsov 2016-04-28 09:03:05 +03:00
parent d18fe138aa
commit c585f74730

View File

@ -753,13 +753,11 @@ prepare_opt_val(Opt, Val, F, Default) ->
end, end,
case Res of case Res of
{'EXIT', _} -> {'EXIT', _} ->
?INFO_MSG("Configuration problem:~n" ?WARNING_MSG("incorrect value '~s' of option '~s', "
"** Option: ~s~n" "using '~s' as fallback",
"** Invalid value: ~s~n" [format_term(Val),
"** Using as fallback: ~s", format_term(Opt),
[format_term(Opt), format_term(Default)]),
format_term(Val),
format_term(Default)]),
Default; Default;
_ -> _ ->
Res Res