franz 1.6.1 → 1.6.2

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
  SHA1:
3
- metadata.gz: 1a17da1aeb6a2b223b7fb1f9c4085de1299d2016
4
- data.tar.gz: e6f257ec68f1828b4329592a37abd4f2129cd8d3
3
+ metadata.gz: 0123d5795d8d9776ab30b591e64f1c638e2aa49d
4
+ data.tar.gz: 9dc83af60c383d0e02aa62e65db0252547281077
5
5
  SHA512:
6
- metadata.gz: bc001b6df6d7ec70bb397ddb0ca0dbe635b3b3861f145e698fd36616af8c12bd5f264dabe27b9b8ec07527258d4178531f9266982609e6c78e82668177974286
7
- data.tar.gz: 8265a3b3dbe8a6e256ca75567731c201e225ef174ff2e117ee7403370a446e71d8e7ee09d0e33ad1543e1f3aea032026437619e6e63abe6980bb5e3a068315b1
6
+ metadata.gz: 2ddc84b054323fd6c0e6a039acc80112d22c1e0b884b5869bd3a1ae3702f0b091bc239f9b7ad947d61aa53aa15e0c2f7f01fc7e7aea36f94ba9e1a4294a725ec
7
+ data.tar.gz: 58f3f9a0e7db2999e99f0ac22c72229929bcf8d15c982b497a498e1259913fb5004c94cec5928bcdccda5f5347600f8f8d96518f9570cf605be2f7ca11b5d4ac
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.1
1
+ 1.6.2
data/bin/franz CHANGED
@@ -44,14 +44,17 @@ Thread.abort_on_exception = true # Die quickly and with great ceremony
44
44
 
45
45
  config = Franz::Config.new opts[:config]
46
46
 
47
+ # Set up Slog to send pretty, colored output to STDOUT, compact to FILE
47
48
  level = :info
48
49
  level = :debug if opts[:debug]
49
50
  level = :trace if opts[:trace]
50
- colorize, pretty = false, false
51
- colorize, pretty = true, true if opts[:log].nil?
51
+ colorize, prettify = false, false
52
+ colorize, prettify = true, true if opts[:log].nil?
52
53
  opts[:log] ||= $stdout
53
- logger = Slog.new out: opts[:log], level: level, colorize: colorize, pretty: pretty
54
+ logger = Slog.new out: opts[:log], level: level, \
55
+ colorize: colorize, prettify: prettify
54
56
 
57
+ # In Franz, all queues are bounded
55
58
  io_bound = config[:output][:bound] || 10_000
56
59
  io = Queue.new
57
60
  io = SizedQueue.new io_bound if io_bound > 0
data/lib/franz/input.rb CHANGED
@@ -132,7 +132,7 @@ module Franz
132
132
  end
133
133
  end
134
134
 
135
- log.info event: 'input started', opts: opts
135
+ log.info event: 'input started'
136
136
  end
137
137
 
138
138
  # Stop everything. Has the effect of draining all the Queues and waiting on
data/lib/franz/output.rb CHANGED
@@ -87,9 +87,7 @@ module Franz
87
87
  end
88
88
  end
89
89
 
90
- log.debug \
91
- event: 'output started',
92
- foreground: @foreground
90
+ log.info event: 'output started'
93
91
 
94
92
  @thread.join if @foreground
95
93
  end
@@ -106,7 +104,7 @@ module Franz
106
104
  return if @foreground
107
105
  @foreground = true
108
106
  @thread.kill
109
- log.debug event: 'output stopped'
107
+ log.info event: 'output stopped'
110
108
  end
111
109
 
112
110
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: franz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-25 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slog