From 9de84cbba28a1c50941c6a05345134f325a8b04b Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 3 Jan 2012 20:03:51 -0800 Subject: [PATCH] only notify hoptoad if it is configured --- lib/resque_job_logging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resque_job_logging.rb b/lib/resque_job_logging.rb index 3402f51a1..18393e011 100644 --- a/lib/resque_job_logging.rb +++ b/lib/resque_job_logging.rb @@ -41,7 +41,7 @@ module ResqueJobLogging :controller => "Resque", :action => self.name } - ) if Rails.env.production? + ) if Rails.env.production? && AppConfig[:hoptoad_api_key].present? end def application_trace(error) #copied from ActionDispatch::ShowExceptions