govuk_message_queue_consumer 2.0.0 → 2.0.1

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: f3d0a2e8f69b4d555db92e1251f26b8238f1ad63
4
- data.tar.gz: c97edff469050cfbf09031625ff3e22f2c573bee
3
+ metadata.gz: 35f5b177e277ec11d5aea2811c4e1ef6e2dd4886
4
+ data.tar.gz: 54050cbbc46013a6bcdaed24eb5c21966e99b8b8
5
5
  SHA512:
6
- metadata.gz: 0ad7430c3ed9f12498a91b90c30050737809f0e2c0234e0892a417d7813004c306d68c95992c04def1fa23b987bc6f5652671472685a8a95dcc257f5ec5c15be
7
- data.tar.gz: b719dadfe75138257d573f91ea758ebf6878ac076971a76dd49012b8de6dd2a35c9c68b559609e1a44148c6ced539c9d8d510c7ad59c95e38241a1903eebd0c6
6
+ metadata.gz: 00d5f07c06e4063bc7b06b9d52e7d96464cf59c024bd80fc7770d6780013a7b8bb587b98cc500edf0066e390055215f0eb2e55f36fb7e788d124216378d329df
7
+ data.tar.gz: a93529d6ef53a6db31e199f946b51b0e7aa971291dc725915a351f3f4d09a3f788513594074beeee9ae4e2d914695713e48c3d6168ea71ee00675f47fd8e0fca
@@ -24,8 +24,9 @@ module GovukMessageQueueConsumer
24
24
  message = Message.new(payload, headers, delivery_info)
25
25
  processor_chain.process(message)
26
26
  rescue Exception => e
27
- $stderr.puts "rabbitmq_consumer: aborting due to unhandled exception in processor #{e.class}: #{e.message}"
28
- exit(1) # ensure rabbitmq requeues outstanding messages
27
+ Airbrake.notify_or_ignore(e) if defined?(Airbrake)
28
+ $stderr.puts "Uncaught exception in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace}"
29
+ exit(1) # Ensure rabbitmq requeues outstanding messages
29
30
  end
30
31
  end
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module GovukMessageQueueConsumer
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_message_queue_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny