fix for Faraday::RackBuilder::StackLocked when logging debug messages

faraday raises "Faraday::RackBuilder::StackLocked (can't modify middleware stack after making a request)"
if you try to add the logger in the request method.