Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request newrelic#503 from ruby-agent/less_frequent_stats_h…
Browse files Browse the repository at this point in the history
…ash_lookup_error

Be more selective about when we raise a StatsHashLookupError.
  • Loading branch information
benweint committed May 14, 2014
2 parents b406e8b + c1ec8c7 commit 5b89fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/stats_engine/stats_hash.rb
Expand Up @@ -49,7 +49,7 @@ def record(metric_specs, value=nil, aux=nil)
stats = nil
begin
stats = self[metric_spec]
rescue => e
rescue NoMethodError => e
# This only happen in the case of a corrupted default_proc
# Side-step it manually, notice the issue, and carry on....
NewRelic::Agent.instance.error_collector. \
Expand Down

0 comments on commit 5b89fa2

Please sign in to comment.