logstash-output-charrington 0.3.4 → 0.3.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b4d2cf70c7a06e6c68ea07f630fe93193af889a40f86eb00f7939292c4e6c1a
|
4
|
+
data.tar.gz: edb182ce54f06099fdb1bde09780584ca613ad0b4737b918d361491ec489cdbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0e1a050e254c82af0792545b20a0015d087058a2707c3c89e854f5fb573e4d08b3678ee41e9e60b0a3349f844d3e40e4faa8e1f07d7f3a36c2f718f7a916435
|
7
|
+
data.tar.gz: 3435a5d501032182453784228a51c19b5bf67a46551ced92541b78ae97a4bab60a863c1c09922c7501d6e7a73816d6b96cdb1d64ed0700864f14fe940d48bdcc
|
@@ -46,7 +46,8 @@ module Charrington
|
|
46
46
|
|
47
47
|
def set_column_types
|
48
48
|
(columns - current_table_columns).each_with_index do |key, idx|
|
49
|
-
|
49
|
+
self.logger.info "New column: #{key}, because of event: #{event}"
|
50
|
+
|
50
51
|
case event[key]
|
51
52
|
when Time, LogStash::Timestamp
|
52
53
|
column_types << "#{key} TIMESTAMP"
|
@@ -82,9 +83,9 @@ module Charrington
|
|
82
83
|
stmt.execute()
|
83
84
|
rescue Java::JavaSql::SQLException => e
|
84
85
|
puts "Alter Redshift SQLException: #{e.message}"
|
85
|
-
self.logger.info "Alter Redshift SQLException: #{e.message}"
|
86
|
+
self.logger.info "Alter Redshift SQLException: #{e.message}, with SQL: #{sql}"
|
86
87
|
rescue => e
|
87
|
-
puts "Alter Redshift Unknown exception: #{e.message}"
|
88
|
+
puts "Alter Redshift Unknown exception: #{e.message}, with SQL: #{sql}"
|
88
89
|
self.logger.info "Alter Redshift Unknown exception: #{e.message}"
|
89
90
|
ensure
|
90
91
|
stmt.close unless stmt.nil?
|
@@ -98,12 +99,12 @@ module Charrington
|
|
98
99
|
return stmt, stmt.executeQuery(prep_sql(sql))
|
99
100
|
rescue Java::JavaSql::SQLException => e
|
100
101
|
puts "execute query SQLException: #{e.message}"
|
101
|
-
self.logger.info "execute query SQLException: #{e.message}"
|
102
|
+
self.logger.info "execute query SQLException: #{e.message}, with SQL: #{sql}"
|
102
103
|
stmt.close unless stmt.nil?
|
103
104
|
# @logger.error("#{e.message}")
|
104
105
|
rescue => e
|
105
106
|
puts "execute query Unknown exception: #{e.message}"
|
106
|
-
self.logger.info "execute query Unknown exception: #{e.message}"
|
107
|
+
self.logger.info "execute query Unknown exception: #{e.message}, with SQL: #{sql}"
|
107
108
|
stmt.close unless stmt.nil?
|
108
109
|
end
|
109
110
|
|
@@ -79,7 +79,7 @@ module Charrington
|
|
79
79
|
statement.execute()
|
80
80
|
rescue Java::JavaSql::SQLException => e
|
81
81
|
puts "Redshift SQLException: #{e.message}"
|
82
|
-
self.logger.info "Redshift SQLException: #{e.message}"
|
82
|
+
self.logger.info "Redshift SQLException: #{e.message}, with SQL: #{sql}"
|
83
83
|
ensure
|
84
84
|
statement.close unless statement.nil?
|
85
85
|
end
|
@@ -157,10 +157,10 @@ module Charrington
|
|
157
157
|
statement.execute()
|
158
158
|
rescue Java::OrgPostgresqlUtil::PSQLException => e
|
159
159
|
puts "PSQLException: #{e.message}"
|
160
|
-
self.logger.info "PSQLException: #{e.message}"
|
160
|
+
self.logger.info "PSQLException: #{e.message}, with SQL: #{sql}"
|
161
161
|
rescue Java::JavaSql::SQLException => e
|
162
162
|
puts "Redshift SQLException: #{e.message}"
|
163
|
-
self.logger.info "Redshift SQLException: #{e.message}"
|
163
|
+
self.logger.info "Redshift SQLException: #{e.message}, with SQL: #{sql}"
|
164
164
|
ensure
|
165
165
|
statement.close unless statement.nil?
|
166
166
|
end
|