fluent-plugin-proxysql-query-log 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: c5651b19bc943b36b5c485ce2aa4975199522ebbb3ef1d740d6650a1fa33cd01
4
- data.tar.gz: d3cb77eee3cc271cd42aa5a83ee63cb5723a57dcdf6a90552a14bff78f6e4d30
3
+ metadata.gz: bb6e42614c4dd70c390287edf9d9d1c2eb11f91433d44e4bd8c490090b7624c7
4
+ data.tar.gz: dc03e404fc9054f5b0beb60b548b99dace1f2a5e0a0f0acc31fb7c569f13dc29
5
5
  SHA512:
6
- metadata.gz: a8023814baf6ad2ad25970ae3a0969690bc416ffef9797f7a19f97117b4664e3bc633ad7d703045decdaf4ec3bb4445b731cc3d611b1e392ce4e23b37eaef9d8
7
- data.tar.gz: 6f8b6a864a112b6ec12c4c049e5c4519925ad0903348793590b201c5e70d0a9b723f622891c8a92d0b1ded54d8d6749daf658af0e4c25bf5238b1322a39f5cc9
6
+ metadata.gz: 8b99a422052d32d18d47e74f5ea5177cf0043d9c8bc7279620784554734e2bedcce14f384bbbae00e020f3d9c46aaeee2d580d4b91693ad173f9b4b7946301a5
7
+ data.tar.gz: fa25452e020e843c4272746153e4ca262c5b3dea67423055f01e1cac6551bf5118b9114be0567d053756386ac0c0068cf62c2d97da66243d08b71bdd060ddddf
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-proxysql-query-log (0.2.1)
4
+ fluent-plugin-proxysql-query-log (0.2.2)
5
5
  cool.io
6
6
  fluentd (>= 0.14.2, < 2)
7
7
  proxysql_query_log-parser
@@ -55,4 +55,4 @@ DEPENDENCIES
55
55
  test-unit (~> 3.0)
56
56
 
57
57
  BUNDLED WITH
58
- 1.16.1
58
+ 1.16.4
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-proxysql-query-log"
6
- spec.version = "0.2.1"
6
+ spec.version = "0.2.2"
7
7
  spec.authors = ["r_takaishi"]
8
8
  spec.email = ["ryo.takaishi.0@gmail.com"]
9
9
 
@@ -70,8 +70,11 @@ module Fluent
70
70
  def start_watchers(paths)
71
71
 
72
72
  paths.each do |path|
73
- log.debug("start watch: #{path}")
74
- @watchers[path] = Watcher.new(path, 0, @pos_storage, router, @tag, log)
73
+ unless @watchers.has_key?(path)
74
+ log.debug("start watch: #{path}")
75
+ @watchers[path] = Watcher.new(path, 0, @pos_storage, router, @tag, log)
76
+ event_loop_attach(@watchers[path])
77
+ end
75
78
  end
76
79
  end
77
80
 
@@ -40,6 +40,9 @@ module Fluent
40
40
  @router.emit(@tag, query.start_time/1000/1000, record(query))
41
41
  @pos_storage.put(@path, @io.pos)
42
42
  end
43
+
44
+ ensure
45
+ @io.close
43
46
  end
44
47
 
45
48
  def record(query)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-proxysql-query-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - r_takaishi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler