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

Will be used like this: https://github.com/domcleal/foreman_bootdisk/commit/843f0b495a6c25133d3248433d4b7e9433b3b985
:+1: 

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