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
Nakilon
  • 34,866
  • 14
  • 107
  • 142
deb
  • 12,326
  • 21
  • 67
  • 86

2 Answers2

-1

try rails server thin -b 0.0.0.0 -p 3000 -e development

or run it with bundle

bundle exec rails server thin -b 0.0.0.0 -p 3000 -e development
yesk13
  • 89
  • 1
  • 5
-1

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)")
Vasiliy Ermolovich
  • 24,459
  • 5
  • 79
  • 77
  • 1
    this works, but I've been getting some really weird output, it looks like images or something like that... – deb Aug 12 '11 at 23:52
  • 1
    This isn't the correct solution - these are HTTP request headers, and there is no Rails routing, rendering or SQL logging – ndbroadbent Jan 10 '12 at 09:14