lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.4 vs lib/logstash/outputs/charrington/create_redshift_table.rb in logstash-output-charrington-0.3.5
- old
+ new
@@ -77,10 +77,10 @@
def execute(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}"
+ self.logger.info "Redshift SQLException: #{e.message}, with SQL: #{sql}"
ensure
statement.close unless statement.nil?
end
end
end