franz 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/franz +6 -3
- data/lib/franz/input.rb +1 -1
- data/lib/franz/output.rb +2 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0123d5795d8d9776ab30b591e64f1c638e2aa49d
|
4
|
+
data.tar.gz: 9dc83af60c383d0e02aa62e65db0252547281077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ddc84b054323fd6c0e6a039acc80112d22c1e0b884b5869bd3a1ae3702f0b091bc239f9b7ad947d61aa53aa15e0c2f7f01fc7e7aea36f94ba9e1a4294a725ec
|
7
|
+
data.tar.gz: 58f3f9a0e7db2999e99f0ac22c72229929bcf8d15c982b497a498e1259913fb5004c94cec5928bcdccda5f5347600f8f8d96518f9570cf605be2f7ca11b5d4ac
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
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,
|
51
|
-
colorize,
|
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,
|
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
data/lib/franz/output.rb
CHANGED
@@ -87,9 +87,7 @@ module Franz
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
log.
|
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.
|
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.
|
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-
|
11
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slog
|