I use Rails 3.0.x and I have a problem with thin output.
When I use:
rails server thin
Thin displays a list of handled requests, and logs them, almost exactly as webrick does. This is great, however I didn’t find any way to use Thin in ssl mode with this command.
To use Thin in ssl mode, as indicated here, I use the following command (plus arguments for ssl):
thin start --ssl ...
With this command, the log is still good but Thin does not output anything in standard output.
So I tried:
thin start --trace
But now Thin writes all request and all responses(!) in standard output, including javascript, images, etc.
With Thin in ssl mode, is there a way to output all handled requests, as webrick does?
When launching Thin with the command:
The possible options are propagated from Rack to thin in Rack::Server#start:
But in Rack::Handler::Thin#run, we can see that the handler doesn’t use those options:
When using Thin in ssl mode via the command line:
Options are parsed in Thin::Runner#parser and then used in Controllers::Controller#start
I would suggest to monkey patch Rack::Handler::Thin#run with a content similar to Controllers::Controller#start.
The result would be something like this: