Put the production mode restriction back into hoptoad notifications from resque
This commit is contained in:
parent
87ffce4f64
commit
2229921ba9
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ module ResqueJobLogging
|
||||||
|
|
||||||
Rails.logger.info(log_string)
|
Rails.logger.info(log_string)
|
||||||
if error
|
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
|
raise error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -35,7 +35,7 @@ module ResqueJobLogging
|
||||||
:error_message => error.message,
|
:error_message => error.message,
|
||||||
:parameters => {
|
:parameters => {
|
||||||
:job_class => self.name,
|
:job_class => self.name,
|
||||||
:arguments => args}
|
:arguments => args
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue