Skip to content

Commit

Permalink
Pass a block for peer cert / cert chain logging
Browse files Browse the repository at this point in the history
  • Loading branch information
film42 committed Apr 3, 2019
1 parent 6ff9f9a commit d413b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bunny/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def peer_certificate_info(peer_cert, prefix = "Peer's leaf certificate")
end

def log_peer_certificate_info(severity, peer_cert, prefix = "Peer's leaf certificate")
@logger.add(severity, peer_certificate_info(peer_cert, prefix))
@logger.add(severity) { peer_certificate_info(peer_cert, prefix) }
end

def log_peer_certificate_chain_info(severity, chain)
Expand Down

0 comments on commit d413b63

Please sign in to comment.