Question: RSpec request logging

Question

RSpec request logging

Answers 0
Added at 2017-09-07 18:09
Tags
Question

I'm using Rails 5.1 with RSpec 3.6. While running request specs of my API endpoints I can see the requested endpoints in output, for example:

[2017-09-07 17:39:03 +0200] INFO -- 200 -- db=1.27 total=10.16 view=8.89 -- GET /api/v1/users host=www.example.com params={}

Here it is a spec:

subject { get "/api/v1/users", headers: headers, params: {} }

it "renders users with 200 status" do
  subject
  expect(response).to have_http_status(:ok)
end

Is it possible to disable them somehow? I've noticed it comes from ActionPack and it appears when executing this line.

Answers to

RSpec request logging

Source Show
◀ Wstecz