mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Do not print full error message when LDAP timeout occurs (EJAB-1324)
This commit is contained in:
parent
549f1029a6
commit
0ccbd7e3f2
@ -71,6 +71,8 @@ do_request(Name, {F, Args}) ->
|
||||
case pg2:get_closest_pid(make_id(Name)) of
|
||||
Pid when is_pid(Pid) ->
|
||||
case catch apply(eldap, F, [Pid | Args]) of
|
||||
{'EXIT', {timeout, _}} ->
|
||||
?ERROR_MSG("LDAP request failed: timed out", []);
|
||||
{'EXIT', Reason} ->
|
||||
?ERROR_MSG("LDAP request failed: eldap:~p(~p)~nReason: ~p",
|
||||
[F, Args, Reason]),
|
||||
|
Loading…
Reference in New Issue
Block a user