Fix exceptions counter

This commit is contained in:
Karl Southern
2015-11-22 18:57:13 +00:00
parent e56176bbea
commit 7a1da5b7cd
3 changed files with 3 additions and 4 deletions

View File

@@ -124,7 +124,8 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
if @exceptions_tracker.reject { |i| i.nil? }.count >= @max_flush_exceptions
@logger.error("JDBC - max_flush_exceptions has been reached")
raise e
log_jdbc_exception(e)
raise LogStash::ShutdownSignal.new
end
end