Skip to content

Commit

Permalink
Issue logstash-plugins#220: Log caught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Lauterwald committed Aug 20, 2017
1 parent 56a5dc1 commit cdf20b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/plugin_mixins/jdbc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def open_jdbc_connection
begin
@database.test_connection
rescue Sequel::DatabaseConnectionError => e
@logger.warn("Failed test_connection.")
@logger.warn("Failed test_connection.", :exception => e)
close_jdbc_connection

#TODO return false and let the plugin raise a LogStash::ConfigurationError
Expand Down

0 comments on commit cdf20b2

Please sign in to comment.