about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-08-07 04:25:51 +0000
committerEric Wong <normalperson@yhbt.net>2010-08-07 04:32:22 +0000
commite4d0b226391948ef433f1d0135814315e4c48535 (patch)
treef56b9fd5f2e196b68cfedf7fc0a39241b8e7d36a /lib/unicorn.rb
parentf1d33c80dd6c5650f960f7087f4e08f809754d34 (diff)
downloadunicorn-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/unicorn.rb')
-rw-r--r--lib/unicorn.rb4
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