lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.13 vs lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.14
- old
+ new
@@ -82,10 +82,9 @@
self.logger.info "Running sql of: #{sql}"
statement = connection.prepareStatement( sql.gsub(/\s+/, " ").strip )
statement.execute()
rescue Java::JavaSql::SQLException => e
- puts "Redshift SQLException: #{e.message}"
self.logger.info "Redshift SQLException: #{e.message}, with SQL: #{sql}"
ensure
self.logger.info "Within ensure block of create_redshift_table.rb and value of statement.nil?: #{statement.nil?}"
statement.close unless statement.nil?
end