Log WebMock::NetConnectNotAllowedError in Rails

For Rails projects, log in Rails.logger.error the WebMock::NetConnectNotAllowedError exception in order to have a trace when using AJAX call in Rails 4 (due to the mutli-thread issue with Ajax)