log2json 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/redis2es +5 -3
- data/log2json.gemspec +1 -1
- 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("
|
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
|
-
|
255
|
-
|
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.
|
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']
|