Skip to content

Commit

Permalink
Stop logging out when 0 messages found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Jan 12, 2017
1 parent 7331989 commit 93bb041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shoryuken/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def fetch(queue, available_processors)
limit = available_processors > FETCH_LIMIT ? FETCH_LIMIT : available_processors

sqs_msgs = Array(receive_messages(queue, limit))
logger.info { "Found #{sqs_msgs.size} messages for '#{queue.name}'" }
logger.info { "Found #{sqs_msgs.size} messages for '#{queue.name}'" } if sqs_msgs.size > 0
logger.debug { "Fetcher for '#{queue}' completed in #{elapsed(started_at)} ms" }
sqs_msgs
rescue => ex
Expand Down

0 comments on commit 93bb041

Please sign in to comment.