rabbit_jobs 0.8.18 → 0.8.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabbit_jobs/job.rb +1 -1
- data/lib/rabbit_jobs/version.rb +1 -1
- data/lib/rabbit_jobs/worker.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb001224d39c5685a57028e31c78f213ed0ac533
|
4
|
+
data.tar.gz: 5f7689323e545cbec16bbd7735f70a667eadea34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc6a6b38911802991eb7b7472c0aeb41f32954ba2976dcb30423a25ae65280efa62d7b7cb3bf27f5306a4eb16112cefa65b88236901ab26b1382a1fc001ceb99
|
7
|
+
data.tar.gz: 802458f8496dcf9fbc3b080d246f91d5c659b0db340b8e6cbb2ad9c47620dfe4e066391abc0a937a923d2c05a57e08db47865cf23a44353108245837b2c332a8
|
data/lib/rabbit_jobs/job.rb
CHANGED
@@ -96,7 +96,7 @@ module RabbitJobs
|
|
96
96
|
|
97
97
|
def log_job_error(error)
|
98
98
|
RabbitJobs.logger.error(short_message: "Job processed [error]",
|
99
|
-
_job: self.to_ruby_string, full_message: _cleanup_backtrace(error.backtrace).join("\r\n"))
|
99
|
+
_job: self.to_ruby_string, _error: error.message, _exception: error.class, full_message: _cleanup_backtrace(error.backtrace).join("\r\n"))
|
100
100
|
|
101
101
|
Airbrake.notify(error, session: {args: self.to_ruby_string}) if defined?(Airbrake)
|
102
102
|
RabbitJobs::ErrorMailer.report_error(self, error) rescue nil
|
data/lib/rabbit_jobs/version.rb
CHANGED
data/lib/rabbit_jobs/worker.rb
CHANGED
@@ -99,9 +99,8 @@ module RabbitJobs
|
|
99
99
|
@consumer.process_message(delivery_info, properties, payload)
|
100
100
|
@processed_count += 1
|
101
101
|
rescue
|
102
|
-
|
103
|
-
|
104
|
-
$!.backtrace.each {|l| RJ.logger.warn l}
|
102
|
+
RabbitJobs.logger.error(short_message: "Message process error",
|
103
|
+
_error: $!.message, _exception: $!.class, full_message: _cleanup_backtrace($!.backtrace).join("\r\n"))
|
105
104
|
end
|
106
105
|
true
|
107
106
|
else
|