mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Mitigates Style/StringLiteralsInInterpolation
This commit is contained in:
parent
da5b5cff5f
commit
dc28a650f7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue