lib/api_client/connection/middlewares/request/logger.rb in api_client-0.5.16 vs lib/api_client/connection/middlewares/request/logger.rb in api_client-0.5.17

- old
+ new

@@ -12,9 +12,10 @@ taken_sec = (current_stamp_millisec - start) / 1000.0 gather_response_debug_lines(response, taken_sec, debug_lines) if response && should_log_details if should_log_details + debug_lines.each { |line| line.encode!("UTF-8", invalid: :replace, undef: :replace) } @logger.debug { debug_lines.join("\n") } else @logger.info { "#{env[:method].to_s.upcase} #{env[:url]}: #{"%.4f" % taken_sec} seconds" } end