diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-12 11:52:12 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-12 13:25:39 -0700 |
commit | f3235420ebd2def1cdcb7c5bbe036f157835420d (patch) | |
tree | 831ee0a0d758e7ecc8d7c0f5cf40f2758c8759c7 /lib/unicorn.rb | |
parent | b3c6fdce2a03da3d335315f18c19669a259824c5 (diff) | |
download | unicorn-f3235420ebd2def1cdcb7c5bbe036f157835420d.tar.gz |
There may be other logs opened if preload_app is true besides stderr/stdout paths. So err on the safe side and reopen everything.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 08d1703..4a4e2e1 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -568,6 +568,7 @@ module Unicorn @config.reload @config.commit!(self) kill_each_worker(:QUIT) + Unicorn::Util.reopen_logs logger.info "done reloading config_file=#{@config.config_file}" rescue Object => e logger.error "error reloading config_file=#{@config.config_file}: " \ |