diff options
author | IƱaki Baz Castillo <ibc@aliax.net> | 2009-12-28 15:46:26 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-28 15:55:25 -0800 |
commit | 4239f0618c8107545fd5babd256c89ffd82553bd (patch) | |
tree | 458b101162db45d7319a8c393786e3dcbadec4b4 /lib | |
parent | 52eee4e424198a3c80793ee9c930fd3bb0285168 (diff) | |
download | unicorn-4239f0618c8107545fd5babd256c89ffd82553bd.tar.gz |
When using multiple listeners, the log messages can be potentially misleading as to which listener fails to bind: Before: INFO -- : unlinking existing socket=/tmp/unicorn.sock INFO -- : listening on addr=/tmp/unicorn.sock fd=3 unicorn/socket_helper.rb:110:in `initialize': Permission denied - bind(2) (Errno::EACCES) After: INFO -- : unlinking existing socket=/tmp/openxdms.sock INFO -- : listening on addr=/tmp/openxdms.sock fd=3 FATAL -- : error adding listener addr=0.0.0.0:84 unicorn/socket_helper.rb:110:in `initialize': Permission denied - bind(2) (Errno::EACCES)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 114ef9d..69ecf33 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -307,6 +307,9 @@ module Unicorn "(#{tries < 0 ? 'infinite' : tries} tries left)" sleep(delay) retry + rescue => err + logger.fatal "error adding listener addr=#{address}" + raise err end end |