On Tue, Aug 16, 2011 at 9:30 PM, Eric Wong <[email protected]> wrote:
> Serg Podtynnyi <[email protected]> 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?
>
> Not unless Rack does it, Rack doesn't recognize "production" in any
> special way.
>
> If you really want it, you can add Rack::CommonLogger to config.ru
> yourself.
>
> Since I was never satisfied with the Rack::CommonLogger logging format,
> I wrote clogger[1] which offers nginx-like formatting options.
>
>
>
> [1] http://clogger.rubyforge.org/ - configurable logger for Rack
>
I am asking about this default values because by the convention
production env is 99% "production", but in the code I see
"deployment", so most of the people that are using unicorn have bogus
logs on production. Thanks for clogger suggestion.
PS
Any idea of how to have some kind of useful information when master
process kills workers by timeout?
We just monkey patched Unicorn::HttpParser read method like this
https://gist.github.com/1151164 to get more info. Is there a better
way to do this?
_______________________________________________
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