Skip to content

Commit 075264b

Browse files
mperhamioquatix
authored andcommitted
Log errors in Logger-compatible way
Fixes #17
1 parent 6c28ecd commit 075264b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/dns/handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def process_query(data, options)
5959

6060
return @server.process_query(query, options)
6161
rescue StandardError => error
62-
@logger.error(self, error)
62+
@logger.error(self) { error }
6363

6464
return error_response(query)
6565
end

0 commit comments

Comments
 (0)