25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Improve ejd2sql logging

This commit is contained in:
Evgeniy Khramtsov 2017-10-27 08:59:49 +03:00
parent a8238d6a54
commit 568ab526e2

View File

@ -86,6 +86,11 @@ export(Server, Output, Module1) ->
fun({Table, ConvertFun}) ->
case export(LServer, Table, IO, ConvertFun) of
{atomic, ok} -> ok;
{aborted, {no_exists, _}} ->
?WARNING_MSG("Ignoring export for module ~s: "
"Mnesia table ~s doesn't exist (most likely "
"because the module is unused)",
[Module1, Table]);
{aborted, Reason} ->
?ERROR_MSG("Failed export for module ~p and table ~p: ~p",
[Module, Table, Reason])