Skip to content

Commit

Permalink
Issue #220: Log caught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
franklauterwald authored and Guy Boertje committed Aug 21, 2017
1 parent 1475b9f commit 5c9160b
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 5c9160b

Please sign in to comment.