totoro 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bcf67a54e3430d56f804525a3ee9731008b194367f25fed929c47580a2c03f1
4
- data.tar.gz: ff0ae95316f329cbbc9871c4e354c32764a6c0a1d15c791272b030798d7ce42e
3
+ metadata.gz: 0f6daf82be12b0a319e09bf4dc6b5d51716a472a0c53ee5222afda83496e3e43
4
+ data.tar.gz: 44932ae30a43d0ca1deb5e2993789f66dedda866ae9a8d1e1e79a5b9ca31e3c7
5
5
  SHA512:
6
- metadata.gz: 622ef851054883c47902772edc0f0e15ae8d7f55c0c81a4118cda3f8d1840ce4fcd69d043da6c804590438227914fc5ca54ac5799d32f86a82c3d5d73b1905f9
7
- data.tar.gz: 3c7e47eaf077234773f36f860b04411ac05f87e5ca548ac24698a65b3d5357ed9fe0efd5d89408601d78344b617b984a7b72e964b357aaabb1e173186d578e2d
6
+ metadata.gz: ae10c7e5743f55ac694f3bea9a2e99f65bd7f6c111ec483dc7992bc7f37b4081d4d4efe5e851bc18b553877598e650bd4b0df7d6ec1b23177bda2e8097589a99
7
+ data.tar.gz: 8e1e8cd544b9d82a394577165c2332b06b75c3e0a21aefb79606a4feb21d61041aac7172de908d8df1e4419fee759446d0825b1b86fa93f02a35cfc994e2dcab
@@ -20,10 +20,12 @@ module Totoro
20
20
  def execute
21
21
  @queue_class.subscribe(@queue_name) do |delivery_info, metadata, payload|
22
22
  Rails.logger.info "#{@queue_name} received message"
23
+ STDOUT.flush
23
24
  payload_hash = JSON.parse(payload).with_indifferent_access
24
25
  process(payload_hash, metadata, delivery_info)
25
26
  end
26
27
  Rails.logger.info 'Listening to the Rabbitmq'
28
+ STDOUT.flush
27
29
  @queue_class.channel.work_pool.join
28
30
  end
29
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Totoro
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
Binary file
@@ -41,7 +41,8 @@ Rails.application.configure do
41
41
 
42
42
  # Use the lowest log level to ensure availability of diagnostic information
43
43
  # when problems arise.
44
- config.log_level = :debug
44
+ config.log_level = :info
45
+ config.logger = Logger.new(STDOUT)
45
46
 
46
47
  # Prepend all log lines with the following tags.
47
48
  config.log_tags = [ :request_id ]
@@ -1 +1,2 @@
1
1
  huishu
2
+ Listening to the Rabbitmq
@@ -1 +1,2 @@
1
1
  E, [2018-07-23T04:24:19.172785 #25] ERROR -- : huishu
2
+ I, [2018-07-23T08:17:35.987092 #20] INFO -- : Listening to the Rabbitmq
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShuHui18
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -100,6 +100,7 @@ files:
100
100
  - lib/totoro/version.rb
101
101
  - pkg/totoro-0.2.2.gem
102
102
  - pkg/totoro-0.2.3.gem
103
+ - pkg/totoro-0.2.4.gem
103
104
  - spec/spec_helper.rb
104
105
  - spec/totoro_spec.rb
105
106
  - test/totoro_test/Gemfile