about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-07 22:50:20 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-07 22:50:20 -0700
commit8041d309129049b1a9e7fa3e64122a5be3f0667d (patch)
tree3adb1967f9689090385b2901f5b6725280e56123
parentd51c8da47421b6f0ab4ea6668a22fff692e81452 (diff)
downloadunicorn-8041d309129049b1a9e7fa3e64122a5be3f0667d.tar.gz
* no need to show PID of process writing the logs,
  the default log formatter already includes it

* Don't bother displaying classes of listeners, the address
  themselves should be enough.
-rw-r--r--lib/unicorn.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index d73317d..f8e0a5d 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -75,7 +75,7 @@ module Unicorn
         io = Socket.for_fd(fd.to_i)
         set_server_sockopt(io)
         @io_purgatory << io
-        logger.info "inherited: #{io} fd=#{fd} addr=#{sock_name(io)}"
+        logger.info "inherited addr=#{sock_name(io)} fd=#{fd}"
         server_cast(io)
       end
 
@@ -145,8 +145,7 @@ module Unicorn
           @io_purgatory << io
           io = server_cast(io)
         end
-        logger.info "#{io} listening on PID:#{$$} " \
-                    "fd=#{io.fileno} addr=#{sock_name(io)}"
+        logger.info "listening on addr=#{sock_name(io)} fd=#{io.fileno}"
         @listeners << io
       else
         logger.error "adding listener failed addr=#{address} (in use)"
@@ -219,7 +218,7 @@ module Unicorn
         retry
       end
       stop # gracefully shutdown all workers on our way out
-      logger.info "master PID:#{$$} join complete"
+      logger.info "master complete"
       unlink_pid_safe(@pid) if @pid
     end