shoryuken 3.1.11 → 3.1.12

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: 790d69004ca82f39b30f5c8bc94a22666c5d4dae
4
- data.tar.gz: 64d8533b1e113cf735d235b39390096e4fe66501
3
+ metadata.gz: 5912d18563bfe2b5faee9c5a3c53bab7c947e987
4
+ data.tar.gz: 5198cea875f0c80902db6d9e6a179a22669a0bce
5
5
  SHA512:
6
- metadata.gz: 6fb9d015a01aef9d4f0288872e52ec05302f18d74594080b8c8220669fb5ccf822fff031bd36ddd94094371f471c6af95b253217ef3ee5a5ebc76979f13b1289
7
- data.tar.gz: 0a00108dbbbf108a98f2d571d6635f8cf49c7230608b3d9c776a770f6c3cc61b6ccdee9a162c05d7dfa41e7921ef1756cfd546fe285bfd0ccb8e874fdb0699b8
6
+ metadata.gz: 75d6d4830a0ea38043606775ba2cabb67be5774bfa7d0409516284f9e99e05ed0f9b4411c56118e65082eebcf97fba08b47d0f99252a4b7145a5a707b09d6685
7
+ data.tar.gz: 1932b9297951e87759162a31ab4fd7dbb849e1d3cbcfb1a5d7e14fe6f5a7f97fcd2daab15923628692979882548c9358caae57827536565f2b5ffd4e28a61de8
@@ -1,3 +1,8 @@
1
+ ## [v3.1.12] - 2017-09-25
2
+
3
+ - Reduce fetch log verbosity
4
+ - [#436](https://github.com/phstc/shoryuken/pull/436)
5
+
1
6
  ## [v3.1.11] - 2017-09-02
2
7
 
3
8
  - Auto retry (up to 3 times) fetch errors
@@ -16,7 +16,7 @@ module Shoryuken
16
16
 
17
17
  sqs_msgs = Array(receive_messages(queue, [FETCH_LIMIT, limit].min))
18
18
 
19
- logger.info { "Found #{sqs_msgs.size} messages for #{queue.name}" } unless sqs_msgs.empty?
19
+ logger.debug { "Found #{sqs_msgs.size} messages for #{queue.name}" } unless sqs_msgs.empty?
20
20
  logger.debug { "Fetcher for #{queue} completed in #{elapsed(started_at)} ms" }
21
21
 
22
22
  sqs_msgs
@@ -1,3 +1,3 @@
1
1
  module Shoryuken
2
- VERSION = '3.1.11'.freeze
2
+ VERSION = '3.1.12'.freeze
3
3
  end
@@ -38,6 +38,22 @@ RSpec.describe Shoryuken::Fetcher do
38
38
  subject.fetch(queue_config, limit)
39
39
  end
40
40
 
41
+ it 'logs debug only' do
42
+ # See https://github.com/phstc/shoryuken/issues/435
43
+ logger = double 'logger'
44
+
45
+ allow(subject).to receive(:logger).and_return(logger)
46
+
47
+ expect(Shoryuken::Client).to receive(:queues).with(queue_name).and_return(queue)
48
+
49
+ expect(queue).to receive(:receive_messages).and_return([double('SQS Msg')])
50
+
51
+ expect(logger).to receive(:debug).exactly(3).times
52
+ expect(logger).to_not receive(:info)
53
+
54
+ subject.fetch(queue_config, limit)
55
+ end
56
+
41
57
  context 'when receive options per queue' do
42
58
  let(:limit) { 5 }
43
59
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoryuken
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.11
4
+ version: 3.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Cantero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-02 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  requirements: []
223
223
  rubyforge_project:
224
- rubygems_version: 2.6.11
224
+ rubygems_version: 2.6.13
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: Shoryuken is a super efficient AWS SQS thread based message processor