Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #7191 - move API response logger to named filter so it can be skipped #1705

Closed
wants to merge 1 commit into from

Conversation

domcleal
Copy link
Contributor

Will be used like this: domcleal/foreman_bootdisk@843f0b4

@@ -211,6 +209,10 @@ def setup_search_options
end
end

def log_response_body
logger.debug "Body: #{response.body}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

can we wrap the string in { } so it would be really executed unless in debug mode? similar to https://github.com/theforeman/foreman/blob/develop/app/services/report_importer.rb#L20

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, good idea.

@ohadlevy
Copy link
Member

ohadlevy commented Sep 2, 2014

merged as 5c631b8, might consider it for 1.6 as it potentially boost api performance

@ohadlevy ohadlevy closed this Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants