Search code examples
sinatrathinwebrick

Sinatra /w Thin: Logging?


I recently installed Thin for a Sinatra app I'm developing. However, it does not seem to be logging/outputing request, response and error messages a la WEBrick. Is there any way to turn these on, and to also use a debugging logger?

If not, I will happily switch back to WEBrick if someone can point out to me how to make Sinatra choose WEBrick over Thin (I'm using shotgun to run my sinatra app)


Solution

  • To use WEBrick, run shotgun as: shotgun yourapp.rb --server=webrick