ruby-on-railsruby-on-rails-3webrickthinrails-3-upgrade

How to show application requests on terminal window while using Thin and Rails 3.0


I started using Thin instead of WEBrick in development (Rails version 3.0.9)

With WEBbrick, I would see all the requests listed (and calls to the database) in the terminal window while the server was running.

How do I get that with thin? When I do thin start the only output I see is:

>> Using rack adapter
>> Thin web server (v1.2.11 codename Bat-Shit Crazy)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

Solution

  • Try thin start -V. https://github.com/macournoyer/thin/blob/master/lib/thin/runner.rb#L134

    opts.on_tail("-V", "--trace", "Set tracing on (log raw request/response)")