Move API response body logging to enable plugins to skip it
|Assigned To:||Dominic Cleal|
|Target version:||Sprint 28|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/1705|
|Velocity based estimate||-|
The API base controller currently has an anonymous after_filter that logs the response body at debug level. For foreman_bootdisk, which is returning large amounts of binary data, this needs disabling as it all gets logged, slowing down the app and generating huge log files.
It should be in a named filter so it's possible to skip the filter in a subclass of the API base controller.