From dc28a650f7b27889016ba1ad42ae408393e2157a Mon Sep 17 00:00:00 2001 From: Thomas Nys Date: Sat, 18 Apr 2015 01:43:49 +0200 Subject: [PATCH] Mitigates Style/StringLiteralsInInterpolation --- lib/httparty/logger/apache_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httparty/logger/apache_logger.rb b/lib/httparty/logger/apache_logger.rb index b18b37b..3e947e2 100644 --- a/lib/httparty/logger/apache_logger.rb +++ b/lib/httparty/logger/apache_logger.rb @@ -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