From 6720cdda4b890ac42806a8fe290f96449a150c6a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 24 Dec 2010 16:48:50 -0800 Subject: eliminate unnecessary freeze and dup They're not needed and a waste of code. --- lib/clogger/format.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/clogger/format.rb') diff --git a/lib/clogger/format.rb b/lib/clogger/format.rb index 9e4f59f..54fe766 100644 --- a/lib/clogger/format.rb +++ b/lib/clogger/format.rb @@ -7,19 +7,19 @@ class Clogger # common log format used by Apache: # http://httpd.apache.org/docs/2.2/logs.html Common = "$remote_addr - $remote_user [$time_local] " \ - '"$request" $status $response_length'.freeze + '"$request" $status $response_length' # combined log format used by Apache: # http://httpd.apache.org/docs/2.2/logs.html - Combined = %Q|#{Common} "$http_referer" "$http_user_agent"|.freeze + Combined = %Q|#{Common} "$http_referer" "$http_user_agent"| # combined log format used by nginx: # http://wiki.nginx.org/NginxHttpLogModule - NginxCombined = Combined.gsub(/response_length/, 'body_bytes_sent').freeze + NginxCombined = Combined.gsub(/response_length/, 'body_bytes_sent') # log format used by Rack 1.0 Rack_1_0 = "$ip - $remote_user [$time_local{%d/%b/%Y %H:%M:%S}] " \ - '"$request" $status $response_length $request_time{4}'.freeze + '"$request" $status $response_length $request_time{4}' end end -- cgit v1.2.3-24-ge0c7