From 5f784047b15ef6d070af8fd2d41404dd08e85aa8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Feb 2009 16:14:38 -0800 Subject: add_listener logging includes fd= information This is to make things consistent with the other logging when adding listeners --- lib/unicorn.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 210d278..63d7f5c 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -140,7 +140,8 @@ module Unicorn if io = bind_listen(address, @listen_backlog) @purgatory << io io = server_cast(io) - logger.info "adding listener #{io} addr=#{sock_name(io)}" + logger.info "#{io} listening on pid=#{$$} " \ + "fd=#{io.fileno} addr=#{sock_name(io)}" @listeners << io else logger.error "adding listener failed addr=#{address} (in use)" -- cgit v1.2.3-24-ge0c7