chore: RuboCop lint Lint/StringConversionInInterpolation

This commit is contained in:
Olle Jonsson 2019-02-27 20:02:55 +01:00
parent 5525c49529
commit 769efe6af6
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module Faraday
end
def on_complete(env)
info('response') { "Status #{env.status.to_s}" }
info('response') { "Status #{env.status}" }
debug('response') { apply_filters(dump_headers env.response_headers) } if log_headers?(:response)
debug('response') { apply_filters(dump_body env[:body]) } if env[:body] && log_body?(:response)
end

View File

@ -80,7 +80,7 @@ module Faraday
end
error do |e|
"#{e.class}\n#{e.to_s}\n#{e.backtrace.join("\n")}"
"#{e.class}\n#{e}\n#{e.backtrace.join("\n")}"
end
end
end