1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 10:19:31 +02:00

Avoid excessive logging of SQL failures

This commit is contained in:
Evgeniy Khramtsov 2017-12-17 19:46:55 +03:00
parent 515f8b22c0
commit 5b42fc1d0d
13 changed files with 54 additions and 93 deletions

View file

@ -63,9 +63,7 @@ caps_write(LServer, NodePair, Features) ->
sql_write_features_t(NodePair, Features)) of
{atomic, _} ->
ok;
{aborted, Reason} ->
?ERROR_MSG("Failed to write to SQL 'caps_features' table: ~p",
[Reason]),
{aborted, _Reason} ->
{error, db_failure}
end.