diff options
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 8a74f97..f43bb0f 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -144,6 +144,10 @@ module Unicorn def stdout_path=(path); redirect_io($stdout, path); end def stderr_path=(path); redirect_io($stderr, path); end + def logger=(obj) + REQUEST.logger = @logger = obj + end + # sets the path for the PID file of the master process def pid=(path) if path @@ -580,7 +584,6 @@ module Unicorn @config.commit!(self) kill_each_worker(:QUIT) Unicorn::Util.reopen_logs - REQUEST.logger = @logger @app = @orig_app build_app! if @preload_app logger.info "done reloading config_file=#{@config.config_file}" |