From 2229921ba9566e9566d3a11b76c102b8dfa824c1 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Tue, 9 Aug 2011 16:19:02 -0700 Subject: [PATCH] Put the production mode restriction back into hoptoad notifications from resque --- lib/resque_job_logging.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resque_job_logging.rb b/lib/resque_job_logging.rb index ccf9f6a75..8a2c9f521 100644 --- a/lib/resque_job_logging.rb +++ b/lib/resque_job_logging.rb @@ -24,7 +24,7 @@ module ResqueJobLogging Rails.logger.info(log_string) if error - notify_hoptoad(error, args) if AppConfig[:hoptoad_api_key].present? + notify_hoptoad(error, args) if AppConfig[:hoptoad_api_key].present? && Rails.env.production? raise error end end @@ -35,7 +35,7 @@ module ResqueJobLogging :error_message => error.message, :parameters => { :job_class => self.name, - :arguments => args} + :arguments => args } ) end