I used to be able see http requests made for sinatra in the window I started my sinantra application from.
I think that after sinatra upgrade I cannot see them any more and I don’t know how to make it so. I don’t need to log them into a file.
set :logging, true didn’t help
- ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
- rack (1.4.0)
- rack-protection (1.2.0)
- sinatra (1.3.2)
- sinatra-advanced-routes (0.5.1)
- sinatra-reloader (0.5.0)
- sinatra-sugar (0.5.1)
This is a bug introduced in Sinatra 1.3.2. The commit that introduced it was intented to fix another bug where the logging was being done twice in certain circumstances, but obviously isn’t quite right.
This request logging is done by using the
Rack::CommonLoggermiddleware component, which is now only added in certain cases. The fix/workaround is to simply add it yourself. Addto the top of your application file (after requiring Sinatra). Note that you might end up with the original problem of seeing requests logged twice in some situations (e.g. if your deployment setup is different from your development setup).