Skip to content

Commit

Permalink
Small tweak to log a stack track instead of just an error name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer authored and tra committed Aug 22, 2011
1 parent f3f6039 commit 5637d4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spawn.rb
Expand Up @@ -186,6 +186,7 @@ def fork_it(options)

rescue => ex
@@logger.error "spawn> Exception in child[#{Process.pid}] - #{ex.class}: #{ex.message}"
@@logger.error "spawn> " + e.backtrace.join("\n")
ensure
begin
# to be safe, catch errors on closing the connnections too
Expand Down

0 comments on commit 5637d4a

Please sign in to comment.