John Fieber <[email protected]> wrote:
> On Aug 16, 2011, at 8:45 AM, Serg Podtynnyi wrote:
> > Hi All, as I can see on
> > https://github.com/defunkt/unicorn/blob/master/lib/unicorn.rb#L53
> > the Rack::CommonLogger used only in development env and in weird evn
> > called "deployment".
> > Any chance to add  "production" to this case?
> 
> My wish would be to remove all of the magically added middlewares.
> Leave the middleware assembly to config.ru.

If you can convince Rack upstream, Unicorn will follow.  I dislike
magic middlewares, too, but I try to follow Rack to minimize the
differences for people using unicorn (and also switching between
"rackup" and unicorn).

> Failing that, my next wish would be to have the magic opt-in.  Failing
> that, my next wish would be for an easy opt-out.  It is maddening to
> debug an error in your app that causes the ShowExceptions middleware
> to crash, masking your actual problem.

I always set RACK_ENV=none for any services I run so nothing
gets added automatically.

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to