1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Mitigates Style/StringLiteralsInInterpolation

This commit is contained in:
Thomas Nys 2015-04-18 01:43:49 +02:00
parent da5b5cff5f
commit dc28a650f7

View file

@ -15,7 +15,7 @@ module HTTParty
http_method = request.http_method.name.split("::").last.upcase
path = request.path.to_s
content_length = response.respond_to?(:headers) ? response.headers['Content-Length'] : response['Content-Length']
@logger.send @level, "[#{TAG_NAME}] [#{current_time}] #{response.code} \"#{http_method} #{path}\" #{content_length || "-"} "
@logger.send @level, "[#{TAG_NAME}] [#{current_time}] #{response.code} \"#{http_method} #{path}\" #{content_length || '-'} "
end
end
end