Skip to content

Commit

Permalink
Revert "Don't assume logging is properly set up when handling unexpec…
Browse files Browse the repository at this point in the history
…ted errors"

This seems to lead to deadlock in some cases on jruby
This reverts commit 7cddc6c.
  • Loading branch information
Sam Goldstein committed May 18, 2012
1 parent 0b3cd36 commit 1d43732
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/new_relic/agent/agent.rb
Expand Up @@ -521,9 +521,6 @@ def handle_server_connection_problem(error)
# unknown state
def handle_other_error(error)
log.error "Terminating worker loop: #{error.class.name}: #{error.message}\n #{error.backtrace.join("\n ")}"
rescue # don't assume logger is set up if we're in an unknown state
warn "Terminating worker loop: #{error.class.name}: #{error.message}\n #{error.backtrace.join("\n ")}"
ensure
disconnect
end

Expand Down

0 comments on commit 1d43732

Please sign in to comment.