Petro Semeniuk
Petro Semeniuk

Reputation: 7038

How to customize Sinatra logging level

I redirected Sinatra output to log file. I was wondering how to skip all requests and write only errors Eg.

localhost - - [22/Dec/2010:15:47:32 AUSEDT] "GET /db/OMSGDV03/tlm HTTP/1.1" 200 93
    - -> /A/B/C

shouldn't appear

Upvotes: 1

Views: 754

Answers (1)

sinjed
sinjed

Reputation: 926

You can turn off requests logging with:

set :logging, false

Upvotes: 1

Related Questions