fluent-plugin-pghstore 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-pghstore.gemspec +1 -1
- data/lib/fluent/plugin/out_pghstore.rb +4 -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: 94646ba9586bbd0eab8ce047a54f729e4f5e6972
|
4
|
+
data.tar.gz: b8e216b8ac227cd40980abf9b4e39107ad49c7b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb7ee2c622e5c616990484019256b5ed22f83f45279e47ce9a78836dd95103b3bb75d762478249d68c647b3fa46f2d6c6e42bb188077817f414d751432dc33eb
|
7
|
+
data.tar.gz: d68cda4d6051ef0cea7ed977e8354205482eac838d0e5c283503074a449beb63e1b3a626f85a895c174866fc81ebb1774d05af722167f5be36b5370607301728
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-pghstore"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.9"
|
7
7
|
s.authors = ["WAKAYAMA Shirou"]
|
8
8
|
s.email = ["shirou.faw@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/shirou/fluent-plugin-pghstore"
|
@@ -64,8 +64,8 @@ class Fluent::Plugin::PgHStoreOutput < Fluent::Plugin::Output
|
|
64
64
|
sql = generate_sql(conn, tag, time_str, record)
|
65
65
|
begin
|
66
66
|
conn.exec(sql)
|
67
|
-
rescue
|
68
|
-
log.error "
|
67
|
+
rescue PG::Error => e
|
68
|
+
log.error "PG::Error: " + e.message # dropped if error
|
69
69
|
end
|
70
70
|
}
|
71
71
|
|
@@ -115,7 +115,7 @@ SQL
|
|
115
115
|
else
|
116
116
|
@conn = PG.connect(:dbname => @database, :host => @host, :port => @port)
|
117
117
|
end
|
118
|
-
rescue
|
118
|
+
rescue PG::Error => e
|
119
119
|
log.error "Error: could not connect database:" + @database
|
120
120
|
return nil
|
121
121
|
end
|
@@ -149,7 +149,7 @@ SQL
|
|
149
149
|
|
150
150
|
begin
|
151
151
|
conn.exec(sql)
|
152
|
-
rescue
|
152
|
+
rescue PG::Error => e
|
153
153
|
log.error "Error at create_table:" + e.message
|
154
154
|
log.error "SQL:" + sql
|
155
155
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-pghstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WAKAYAMA Shirou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|