Update jdbc.rb

This commit is contained in:
Karl 2014-04-22 10:01:41 +01:00
parent 3ac6e61152
commit 7700347cea

View File

@ -45,7 +45,11 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
@logger.debug("Sending SQL to server", :event => event, :sql => statement.toString()) @logger.debug("Sending SQL to server", :event => event, :sql => statement.toString())
begin
statement.executeUpdate() statement.executeUpdate()
rescue Exception => e
@logger.error("JDBC Exception", :exception => e)
end
statement.close() statement.close()
end end