Update jdbc.rb
This commit is contained in:
parent
3ac6e61152
commit
7700347cea
|
@ -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())
|
||||||
|
|
||||||
statement.executeUpdate()
|
begin
|
||||||
|
statement.executeUpdate()
|
||||||
|
rescue Exception => e
|
||||||
|
@logger.error("JDBC Exception", :exception => e)
|
||||||
|
end
|
||||||
statement.close()
|
statement.close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user