diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-28 00:15:35 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-28 00:17:17 -0700 |
commit | aafc9bf7f051c6f2fb0047647d4ed26b3a825ea3 (patch) | |
tree | a10959920b57fe8bb22666e93ea6253b98acd0ff /lib | |
parent | 69b6f9aaec80f3da2f9d249545c06ccb6ec316cb (diff) | |
download | unicorn-aafc9bf7f051c6f2fb0047647d4ed26b3a825ea3.tar.gz |
We no longer have external lookups for it so just stick it in the DEFAULTS hash for now. Since the Configurator::DEFAULTS hash can be considered a stable interface for other modules to interact with, they can eventually just use it instead of relying on another constant.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/configurator.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index f64753c..7e66f60 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -42,13 +42,11 @@ module Unicorn # # correctly implements pread()/pwrite() system calls) # end class Configurator < Struct.new(:set, :config_file) - # The default logger writes its output to $stderr - DEFAULT_LOGGER = Logger.new($stderr) # Default settings for Unicorn DEFAULTS = { :timeout => 60, - :logger => DEFAULT_LOGGER, + :logger => Logger.new($stderr), :worker_processes => 1, :after_fork => lambda { |server, worker| server.logger.info("worker=#{worker.nr} spawned pid=#{$$}") |