Small style fix up for patch
This commit is contained in:
parent
4f93fa7224
commit
4287c01037
|
@ -117,13 +117,13 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
statement.setFloat(idx + 1, event[i])
|
statement.setFloat(idx + 1, event[i])
|
||||||
when String
|
when String
|
||||||
statement.setString(idx + 1, event[i])
|
statement.setString(idx + 1, event[i])
|
||||||
when true
|
when true
|
||||||
statement.setBoolean(idx + 1, true)
|
statement.setBoolean(idx + 1, true)
|
||||||
when false
|
when false
|
||||||
statement.setBoolean(idx + 1, false)
|
statement.setBoolean(idx + 1, false)
|
||||||
when nil
|
when nil
|
||||||
statement.setString(idx + 1, nil)
|
statement.setString(idx + 1, nil)
|
||||||
else
|
else
|
||||||
statement.setString(idx + 1, event.sprintf(i))
|
statement.setString(idx + 1, event.sprintf(i))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -139,9 +139,9 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
# Since the exceutebatch failed this should mean any events failed to be
|
# Since the exceutebatch failed this should mean any events failed to be
|
||||||
# inserted will be re-run. We're going to log it for the lols anyway.
|
# inserted will be re-run. We're going to log it for the lols anyway.
|
||||||
@logger.warn("JDBC - Exception. Will automatically retry", :exception => e)
|
@logger.warn("JDBC - Exception. Will automatically retry", :exception => e)
|
||||||
if e.getNextException() != nil
|
if e.getNextException() != nil
|
||||||
@logger.warn("JDBC - Exception. Will automatically retry", :exception => e.getNextException())
|
@logger.warn("JDBC - Exception. Will automatically retry", :exception => e.getNextException())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
statement.close()
|
statement.close()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'logstash-output-jdbc'
|
s.name = 'logstash-output-jdbc'
|
||||||
s.version = "0.1.0"
|
s.version = "0.1.1"
|
||||||
s.licenses = [ "Apache License (2.0)" ]
|
s.licenses = [ "Apache License (2.0)" ]
|
||||||
s.summary = "This plugin allows you to output to SQL, via JDBC"
|
s.summary = "This plugin allows you to output to SQL, via JDBC"
|
||||||
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user