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: f8f75c19806517d0c597e782ffd4a9160f5168871b057c5d2fdc03b9e09d20b1
4
- data.tar.gz: 5b9fa8bafb8ae65ec9dba508ec1e9c6b0dde4f26a5d203ef308eabc4661b3646
3
+ metadata.gz: 3b4d2cf70c7a06e6c68ea07f630fe93193af889a40f86eb00f7939292c4e6c1a
4
+ data.tar.gz: edb182ce54f06099fdb1bde09780584ca613ad0b4737b918d361491ec489cdbd
5
5
  SHA512:
6
- metadata.gz: c2b238f952aabd0b8e5240b945b55e9d61d556ea15f884f78136561d856f09806263893eab96198e425a900bd4b01b27e535c29742e09fd391682f6ffc5d693f
7
- data.tar.gz: 8348c952b46c8c379bba21c6e6cfd634637e7ee01adcb4f64e157982492970ccd4a48e6d3a0594ac1db946fa80559fc7518346590f4cb9da4a45025f2b54c5c7
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-charrington'
3
- s.version = '0.3.4'
3
+ s.version = '0.3.5'
4
4
 
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.homepage = 'https://gitlab.podium.com/engineering/analytics/logstash-output-charrington'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-charrington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dconger