0.2.10
This commit is contained in:
parent
b10462dacd
commit
da5a3d8be3
|
@ -1,6 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file, from 0.2.0.
|
All notable changes to this project will be documented in this file, from 0.2.0.
|
||||||
|
|
||||||
|
## [0.2.10] - 2016-07-07
|
||||||
|
- Support non-string entries in statement array
|
||||||
|
- Adds backtrace to exception logging
|
||||||
|
|
||||||
## [0.2.9] - 2016-06-29
|
## [0.2.9] - 2016-06-29
|
||||||
- Fix NameError exception.
|
- Fix NameError exception.
|
||||||
- Moved log_jdbc_exception calls
|
- Moved log_jdbc_exception calls
|
||||||
|
|
|
@ -286,13 +286,14 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
|
|
||||||
def add_statement_event_params(statement, event)
|
def add_statement_event_params(statement, event)
|
||||||
@statement[1..-1].each_with_index do |i, idx|
|
@statement[1..-1].each_with_index do |i, idx|
|
||||||
value = event[i]
|
if i.is_a? String
|
||||||
|
value = event[i]
|
||||||
value = if value.nil? and i.to_s =~ /%{/
|
if value.nil? and i =~ /%\{/
|
||||||
event.sprintf(i)
|
value = event.sprintf(i)
|
||||||
else
|
end
|
||||||
value
|
else
|
||||||
end
|
value = i
|
||||||
|
end
|
||||||
|
|
||||||
case value
|
case value
|
||||||
when Time
|
when Time
|
||||||
|
@ -323,6 +324,7 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
statement
|
statement
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def log_jdbc_exception(exception, retrying)
|
def log_jdbc_exception(exception, retrying)
|
||||||
current_exception = exception
|
current_exception = exception
|
||||||
log_text = 'JDBC - Exception. ' + (retrying ? 'Retrying' : 'Not retrying') + '.'
|
log_text = 'JDBC - Exception. ' + (retrying ? 'Retrying' : 'Not retrying') + '.'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user