diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-08-07 04:25:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-07 04:32:22 +0000 |
commit | e4d0b226391948ef433f1d0135814315e4c48535 (patch) | |
tree | f56b9fd5f2e196b68cfedf7fc0a39241b8e7d36a /lib | |
parent | f1d33c80dd6c5650f960f7087f4e08f809754d34 (diff) | |
download | unicorn-e4d0b226391948ef433f1d0135814315e4c48535.tar.gz |
Something is wrong if workers exit with a non-zero status, so we'll increase the log level to help prevent people from missing it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 8f490bb..52349f0 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -519,8 +519,8 @@ module Unicorn proc_name 'master' else worker = WORKERS.delete(wpid) and worker.tmp.close rescue nil - logger.info "reaped #{status.inspect} " \ - "worker=#{worker.nr rescue 'unknown'}" + m = "reaped #{status.inspect} worker=#{worker.nr rescue 'unknown'}" + status.success? ? logger.info(m) : logger.error(m) end end rescue Errno::ECHILD |