mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Better formatting of configuration problem log message
This commit is contained in:
parent
d18fe138aa
commit
c585f74730
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user