From aafc9bf7f051c6f2fb0047647d4ed26b3a825ea3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Sep 2009 00:15:35 -0700 Subject: configurator: remove DEFAULT_LOGGER constant 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. --- lib/unicorn/configurator.rb | 4 +--- 1 file changed, 1 insertion(+), 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=#{$$}") -- cgit v1.2.3-24-ge0c7