Skip to content

Commit

Permalink
* no lager output on exception propagation (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rcq authored Apr 22, 2021
1 parent ee82e0a commit e2bdc4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/erldns_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ safe_handle_packet_cache_miss(Message, AuthorityRecords, Host) ->
maybe_cache_packet(Response, Response#dns_message.aa)
catch
Exception:Reason:Stacktrace ->
lager:error("Error answering request (module: ~p, event: ~p, exception: ~p, reason: ~p, message: ~p, stacktrace: "
"~p)",
[?MODULE, resolve_error, Exception, Reason, Message, Stacktrace]),
% lager:error("Error answering request (module: ~p, event: ~p, exception: ~p, reason: ~p, message: ~p, stacktrace: "
% "~p)",
% [?MODULE, resolve_error, Exception, Reason, Message, Stacktrace]),
erldns_events:notify({?MODULE, resolve_error, {Exception, Reason, Message, Stacktrace}}),
RCode = case Reason of
{error, rcode, ?DNS_RCODE_SERVFAIL} -> ?DNS_RCODE_SERVFAIL;
Expand Down

0 comments on commit e2bdc4c

Please sign in to comment.