From e0051eaba89582d2025f7c9abf578ec0c7761739 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Wed, 10 Aug 2011 15:13:32 -0700 Subject: [PATCH] send hoptoad the whole backtrace, rather than just the application backtrace --- lib/resque_job_logging.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resque_job_logging.rb b/lib/resque_job_logging.rb index 83dec4c22..de61ab996 100644 --- a/lib/resque_job_logging.rb +++ b/lib/resque_job_logging.rb @@ -21,7 +21,7 @@ module ResqueJobLogging log_string << "annotated_source='#{error.annoted_source_code.to_s}' " if error.respond_to?(:annoted_source_code) backtrace = application_trace(error) log_string << "app_backtrace='#{backtrace.join(";")}' " - notify_hoptoad(error, args, backtrace) if AppConfig[:hoptoad_api_key].present? + notify_hoptoad(error, args) if AppConfig[:hoptoad_api_key].present? else log_string += "status=complete " end @@ -30,11 +30,11 @@ module ResqueJobLogging raise error if error end - def notify_hoptoad(error, job_arguments, backtrace) + def notify_hoptoad(error, job_arguments) HoptoadNotifier.notify( :error_class => error.class, :error_message => error.message, - :backtrace => backtrace, + :backtrace => error.backtrace, :parameters => { :job_class => self.name, :arguments => job_arguments.map!{|a| a.to_s[0..30]},