(I'm using rails 4.0.3, devise 3.2.3 and lograge 0.3.0.)
I'm not sure if this is really devise devise specific. When I make a request that fails authentication it returns a 401 Unauthorized. lograge does log this with status=0 though. When I look at payload in https://github.com/roidrage/lograge/blob/master/lib/lograge/log_subscriber.rb#L56-L65, I get
{:controller=>"TestsController", :action=>"index", :params=>{"action"=>"index", "controller"=>"tests"}, :format=>"*/*", :method=>"GET", :path=>"/tests"}
which is obviously the reason why status=0 gets logged.
With lograge disabled I get this log entry by rails:
Started GET "/tests" for 127.0.0.1 at 2014-03-14 10:45:49 +0100
Processing by TestsController#index as */*
Completed 401 Unauthorized in 8ms
I'm wondering if I am overlooking something here and if this can be somehow fixed. Anyone else seeing this issue?
(I'm using rails 4.0.3, devise 3.2.3 and lograge 0.3.0.)
I'm not sure if this is really devise devise specific. When I make a request that fails authentication it returns a
401 Unauthorized. lograge does log this withstatus=0though. When I look atpayloadin https://github.com/roidrage/lograge/blob/master/lib/lograge/log_subscriber.rb#L56-L65, I getwhich is obviously the reason why
status=0gets logged.With lograge disabled I get this log entry by rails:
I'm wondering if I am overlooking something here and if this can be somehow fixed. Anyone else seeing this issue?