utopia 0.9.25 → 0.9.26
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia/middleware/logger.rb +2 -1
- data/lib/utopia/version.rb +1 -1
- metadata +2 -2
@@ -21,7 +21,7 @@ module Utopia
|
|
21
21
|
|
22
22
|
class Logger
|
23
23
|
ACCESS_LOG = "access_log"
|
24
|
-
HEADER = [:ip, :agent, :method, :url, :status, :location, :length]
|
24
|
+
HEADER = [:ip, :agent, :method, :url, :status, :location, :referer, :length]
|
25
25
|
|
26
26
|
def write_log(env, response)
|
27
27
|
request = Rack::Request.new(env)
|
@@ -30,6 +30,7 @@ module Utopia
|
|
30
30
|
:ip => request.ip,
|
31
31
|
:host => request.host,
|
32
32
|
:url => request.url,
|
33
|
+
:referer => request.referer,
|
33
34
|
:agent => env['HTTP_USER_AGENT'],
|
34
35
|
:status => response[0],
|
35
36
|
:method => request.request_method,
|
data/lib/utopia/version.rb
CHANGED