franz 2.1.14 → 2.2.0

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: 55b563768b575bdc2c32f0c94e5b602fb48c8f05
4
- data.tar.gz: dba0eff6f7e9a3d709374e9bf8c73c79703a543f
3
+ metadata.gz: cc7a5d6d178dc1e69c3bae41689803b001818b91
4
+ data.tar.gz: e95d2d372a2babcef729283e16065a6bcbff0d79
5
5
  SHA512:
6
- metadata.gz: 7b09bc2fd25b9d47afc0b27f09bbb0ffcf68b15490c38500eec50739479ce1543d7a6f64cca170acd971fd80d8fc6a89c60e606fa48822270f78378f0fa0c85f
7
- data.tar.gz: f9d1e1a68d7b4f90d816aa93a15e78b5610a621cdb20ba427943184eca24fd159772169aa0d7e3e0f314a66af4d5b82f89a43a914d0c66fb2ab222e4b169fc51
6
+ metadata.gz: aefde13b6cdf69d0bdda0ab5188762d478a291adb717e854d5532c2b2cb71f4f1e1dcc616eb537ce1f85d738f2da9160c6d3b10eae7005570743c583c166ada2
7
+ data.tar.gz: 992e197e977ac5b80117c01c25d9145661463a2a6e0f8d19c00136211f01485eccf96dbbe6c66e423a2df3a53b58cbe1640651bcd09c3794a16b0c319fd5d4b7
data/Readme.md CHANGED
@@ -63,7 +63,7 @@ You can build a gem from this repository, or use RubyGems:
63
63
  Just call for help!
64
64
 
65
65
  $ franz --help
66
-
66
+
67
67
  .--.,
68
68
  ,--.' \ __ ,-. ,---, ,----,
69
69
  | | /\/,' ,'/ /| ,-+-. / | .' .`|
@@ -75,17 +75,16 @@ Just call for help!
75
75
  | | | | , ; / / ,. | | | |--' ./__; .'
76
76
  | : \ ---' ; : .' \| |/ ; | .'
77
77
  | |,' | , .-./'---' `---'
78
- `--' `--`---' v2.1.0
79
-
80
-
78
+ `--' `--`---' v2.2.0
79
+
80
+
81
81
  Aggregate log file events and send them elsewhere
82
-
82
+
83
83
  Usage: franz [<options>]
84
-
84
+
85
85
  Options:
86
86
  --config, -c <s>: Configuration file to use
87
87
  --debug, -d: Enable debugging output
88
- --trace, -t: Enable trace output
89
88
  --log, -l <s>: Log to file, not STDOUT
90
89
  --version, -v: Print version and exit
91
90
  --help, -h: Show this message
@@ -211,9 +210,9 @@ At Blue Jeans, we deploy Franz with Upstart. Here's a minimal config:
211
210
 
212
211
  #!upstart
213
212
  description "franz"
214
-
213
+
215
214
  console log
216
-
215
+
217
216
  start on startup
218
217
  stop on shutdown
219
218
  respawn
@@ -225,6 +224,11 @@ for Chef.
225
224
 
226
225
  ### Changelog
227
226
 
227
+ ### v2.2
228
+
229
+ - Updated dependencies
230
+ - No more `TRACE`-level logging (demoted to `DEBUG`)
231
+
228
232
  #### v2.1
229
233
 
230
234
  - Self-contained packages for OS X and Linux thanks to [Traveling Ruby](http://phusion.github.io/traveling-ruby) and [FPM](https://github.com/jordansissel/fpm)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.14
1
+ 2.2.0
data/bin/franz CHANGED
@@ -23,7 +23,6 @@ parser = Trollop::Parser.new do
23
23
  EOS
24
24
  opt :config, 'Configuration file to use', type: :string, required: true
25
25
  opt :debug, 'Enable debugging output', default: false
26
- opt :trace, 'Enable trace output', default: false
27
26
  opt :log, 'Log to file, not STDOUT', type: :string, default: nil
28
27
  end
29
28
 
@@ -40,7 +39,6 @@ config = Franz::Config.new opts[:config]
40
39
  # Set up Slog to send pretty, colored output to STDOUT, compact to FILE
41
40
  level = :info
42
41
  level = :debug if opts[:debug]
43
- level = :trace if opts[:trace]
44
42
  device = opts[:log] || $stdout
45
43
  colorize, prettify = false, false
46
44
  colorize, prettify = true, true if device.tty? rescue false
data/lib/franz/agg.rb CHANGED
@@ -90,7 +90,7 @@ module Franz
90
90
 
91
91
  def enqueue path, message
92
92
  if @ic.drop? path, message
93
- log.trace \
93
+ log.debug \
94
94
  event: 'dropped',
95
95
  file: path,
96
96
  message: message
@@ -98,7 +98,7 @@ module Franz
98
98
  end
99
99
 
100
100
  unless @ic.keep? path, message
101
- log.trace \
101
+ log.debug \
102
102
  event: 'unkept',
103
103
  file: path,
104
104
  message: message
@@ -107,14 +107,14 @@ module Franz
107
107
 
108
108
  t = @ic.type path
109
109
  if t.nil?
110
- log.trace \
110
+ log.debug \
111
111
  event: 'enqueue skipped',
112
112
  file: path,
113
113
  message: message
114
114
  return
115
115
  end
116
116
 
117
- log.trace \
117
+ log.debug \
118
118
  event: 'enqueue',
119
119
  file: path,
120
120
  message: message
@@ -142,7 +142,7 @@ module Franz
142
142
 
143
143
  def capture
144
144
  event = tail_events.shift
145
- log.trace \
145
+ log.debug \
146
146
  event: 'capture',
147
147
  raw: event
148
148
  multiline = @ic.config(event[:path])[:multiline] rescue nil
@@ -153,7 +153,7 @@ module Franz
153
153
  lock[event[:path]].synchronize do
154
154
  size = buffer.size(event[:path])
155
155
  if size > @buffer_limit
156
- log.trace \
156
+ log.debug \
157
157
  event: 'buffer overflow',
158
158
  file: event[:path],
159
159
  size: size,
@@ -40,7 +40,7 @@ module Franz
40
40
  event['tags'] += opts[:tags]
41
41
  end
42
42
 
43
- log.trace \
43
+ log.debug \
44
44
  event: 'publish',
45
45
  raw: event
46
46
 
@@ -79,7 +79,7 @@ module Franz
79
79
  enqueue payload
80
80
  end
81
81
 
82
- log.trace \
82
+ log.debug \
83
83
  event: 'publish',
84
84
  raw: event
85
85
  end
@@ -87,7 +87,7 @@ module Franz
87
87
  event['tags'] += opts[:tags]
88
88
  end
89
89
 
90
- log.trace \
90
+ log.debug \
91
91
  event: 'publish',
92
92
  raw: event
93
93
 
@@ -66,7 +66,7 @@ module Franz
66
66
  event['tags'] += opts[:tags]
67
67
  end
68
68
 
69
- log.trace \
69
+ log.debug \
70
70
  event: 'publish',
71
71
  raw: event
72
72
 
data/lib/franz/tail.rb CHANGED
@@ -77,7 +77,7 @@ module Franz
77
77
 
78
78
 
79
79
  def read path, size
80
- log.trace \
80
+ log.debug \
81
81
  event: 'read',
82
82
  file: path,
83
83
  size: size
@@ -173,7 +173,7 @@ module Franz
173
173
 
174
174
 
175
175
  def close path
176
- log.trace event: 'close', file: path
176
+ log.debug event: 'close', file: path
177
177
  tail_events.push path: path, line: buffer[path].flush
178
178
  @nil_read.delete path
179
179
  @cursors[path] = 0
@@ -182,7 +182,7 @@ module Franz
182
182
 
183
183
  def handle event
184
184
  path, size = event[:path], event[:size]
185
- log.trace \
185
+ log.debug \
186
186
  event: 'handle',
187
187
  raw: event
188
188
  case event[:name]
data/lib/franz/watch.rb CHANGED
@@ -95,7 +95,7 @@ module Franz
95
95
  def log ; @logger end
96
96
 
97
97
  def enqueue name, path, size=nil
98
- log.trace \
98
+ log.debug \
99
99
  event: 'enqueue',
100
100
  name: name,
101
101
  file: path,
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: 2.1.14
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slog
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.0
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bunny
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.0
33
+ version: '2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.0
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: trollop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.1.0
47
+ version: '2.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.1.0
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: colorize
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.7.0
61
+ version: '0.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.7.0
68
+ version: '0.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: deep_merge
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -184,4 +184,3 @@ test_files:
184
184
  - test/test_franz_tail.rb
185
185
  - test/test_franz_watch.rb
186
186
  - test/test_performance.rb
187
- has_rdoc: