using unicorn as a local development server

Patrick J. Collins patrick at collinatorstudios.com
Thu Feb 23 05:01:25 UTC 2012


> You shouldn't even need the logger directive, it goes to stderr by
> default so your console will still show it.

Hmm that's odd because I noticed as soon as I began using unicorn that I got
very little output.  For example, running my app and browsing to various pages, this is all I see:

I, [2012-02-22T19:38:30.511485 #8933]  INFO -- : listening on addr=0.0.0.0:3000 fd=3
I, [2012-02-22T19:38:30.511938 #8933]  INFO -- : worker=0 spawning...
I, [2012-02-22T19:38:30.514042 #8933]  INFO -- : master process ready
I, [2012-02-22T19:38:30.515943 #8934]  INFO -- : worker=0 spawned pid=8934
I, [2012-02-22T19:38:30.516671 #8934]  INFO -- : Refreshing Gem list
DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from require at /Users/patrick/.rvm/gems/ruby-1.9.2-p290 at global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68)
I, [2012-02-22T19:38:56.879509 #8934]  INFO -- : worker=0 ready
I, [2012-02-22T19:49:22.737427 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T19:49:35.800600 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T20:02:05.792427 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T20:03:07.315092 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T20:03:36.330349 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T20:04:33.278243 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized
I, [2012-02-22T20:05:33.188828 #8933]  INFO -- : SIGWINCH ignored because we're not daemonized

...

None of the development.log output is getting piped into this, so that's why I
thought doing the Logger.new(STDOUT) would get that behavior to happen just as
it does with the default rails server.


Patrick J. Collins
http://collinatorstudios.com


More information about the mongrel-unicorn mailing list