log2json 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/redis2es +5 -3
  2. data/log2json.gemspec +1 -1
  3. metadata +1 -1
data/bin/redis2es CHANGED
@@ -233,7 +233,7 @@ def main
233
233
  end
234
234
 
235
235
  if @shutdown
236
- LOG.warn("Terminating! Flusing the queue(size=#{@queue.size})...")
236
+ LOG.warn("Shuting down! Flushing the queue(size=#{@queue.size})...")
237
237
  flush_queue()
238
238
  exit(0)
239
239
  end
@@ -251,8 +251,10 @@ begin
251
251
  LOG.info("Starting processing loop...")
252
252
  main()
253
253
  ensure
254
- LOG.warn("Terminating! Flusing the queue(size=#{@queue.size})...")
255
- flush_queue() rescue :pass
254
+ if @queue.size > 0
255
+ LOG.warn("Terminating! Flushing the queue(size=#{@queue.size})...")
256
+ flush_queue() rescue :pass
257
+ end
256
258
  if File.exist?(REDO_LOG) and File.exist?(redo_tempfile_path)
257
259
  LOG.warn("Redo log file(#{REDO_LOG}) already exists!? " +
258
260
  "Please remove it so new redo logs can be written!")
data/log2json.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'log2json'
3
- s.version = '0.1.18'
3
+ s.version = '0.1.19'
4
4
  s.summary = "Read, filter and ship logs. ie, poor man's roll-your-own, light-weight logstash replacement."
5
5
  s.description = IO.read(File.join(File.dirname(__FILE__), 'README'))
6
6
  s.authors = ['Jack Kuan']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: