diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-17 08:54:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-17 08:54:37 +0000 |
commit | 5f478f5a9a58f72c0a844258b8ee614bf24ea9f7 (patch) | |
tree | 4f54eeda882fa23e957e10a9484d07bca7cd9582 /lib/unicorn/socket_helper.rb | |
parent | fa7ce0a6a755cb71a30417478fb797ee7b8d94b5 (diff) | |
download | unicorn-5f478f5a9a58f72c0a844258b8ee614bf24ea9f7.tar.gz |
Backtraces are now formatted properly (with timestamps) and exceptions will be logged more consistently and similar to Logger defaults: "#{exc.message} (#{e.class})" backtrace.each { |line| ... } This may break some existing monitoring scripts, but errors will be more standardized and easier to check moving forward.
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r-- | lib/unicorn/socket_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb index 3519a7b..1d4e0f2 100644 --- a/lib/unicorn/socket_helper.rb +++ b/lib/unicorn/socket_helper.rb @@ -101,8 +101,7 @@ module Unicorn end sock.listen(opt[:backlog]) rescue => e - logger.error "error setting socket options: #{e.inspect}" - logger.error e.backtrace.join("\n") + Unicorn.log_error(logger, message, e) end def log_buffer_sizes(sock, pfx = '') |