record alias/implication failures in new relic

This commit is contained in:
r888888888
2015-08-05 14:54:08 -07:00
parent 57e6b725b6
commit 95f4215873
2 changed files with 2 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ class TagAlias < ActiveRecord::Base
update_column(:status, "active")
rescue Exception => e
update_column(:status, "error: #{e}")
NewRelic::Agent.notice_error(e, :custom_params => {:tag_alias_id => id, :antecedent_name => antecedent_name, :consequent_name => consequent_name})
end
def is_pending?

View File

@@ -131,6 +131,7 @@ class TagImplication < ActiveRecord::Base
update_forum_topic_for_approve if update_topic
rescue Exception => e
update_column(:status, "error: #{e}")
NewRelic::Agent.notice_error(e, :custom_params => {:tag_implication_id => id, :antecedent_name => antecedent_name, :consequent_name => consequent_name})
end
def absence_of_circular_relation