Created
March 20, 2018 16:20
-
-
Save johnpmitsch/57055feb8d4e65ebfd2d215466aceee2 to your computer and use it in GitHub Desktop.
foreman/katello record external HTTP calls logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add http_logger to local gems https://github.com/railsware/http_logger | |
# then add the following to foreman/config/development.rb | |
outbound_calls = Logger.new("#{Rails.root}/log/outbound.log") | |
HttpLogger.logger = outbound_calls | |
# HttpLogger.ignore = ["example\.com"] (this doesn't work for some reason) | |
HttpLogger.log_request_body = false # Default: true | |
HttpLogger.log_response_body = false # Default: true | |
# You can get the outbound calls by running something like this (in foreman dir) | |
# tail -f log/outbound.log | grep -v "Response status" | grep -v "myhostname" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment