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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d5ca99e16512c61f2efa193f64312952483e7c1
4
- data.tar.gz: 2f15f4ce6e91d24ff4697766c4ca964dbac0b10d
3
+ metadata.gz: cb001224d39c5685a57028e31c78f213ed0ac533
4
+ data.tar.gz: 5f7689323e545cbec16bbd7735f70a667eadea34
5
5
  SHA512:
6
- metadata.gz: f17ed6f485e1d30333f119810b4f002c0d17729dff04463db73505a6718191db5e88b9b85c7dd3beb72dea73d5683a75bef080ca24da7450c254c575aca57530
7
- data.tar.gz: def105487f4cf08d99da3716a59765c424694c39fae62a8c86bb48968e1ff31a1a8e45a89618fbbaacecce66edd166ead2f4d4ddde427623ce2c30cf6ba19fa5
6
+ metadata.gz: cc6a6b38911802991eb7b7472c0aeb41f32954ba2976dcb30423a25ae65280efa62d7b7cb3bf27f5306a4eb16112cefa65b88236901ab26b1382a1fc001ceb99
7
+ data.tar.gz: 802458f8496dcf9fbc3b080d246f91d5c659b0db340b8e6cbb2ad9c47620dfe4e066391abc0a937a923d2c05a57e08db47865cf23a44353108245837b2c332a8
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.8.18"
4
+ VERSION = "0.8.19"
5
5
  end
@@ -99,9 +99,8 @@ module RabbitJobs
99
99
  @consumer.process_message(delivery_info, properties, payload)
100
100
  @processed_count += 1
101
101
  rescue
102
- RJ.logger.warn "process_message failed. payload: #{payload.inspect}"
103
- RJ.logger.warn $!.inspect
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.18
4
+ version: 0.8.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis