Skip to content

Commit

Permalink
warp driver loading and log in case of failure
Browse files Browse the repository at this point in the history
Fixes #86
  • Loading branch information
Pere Urbon-Bayes authored and Pere Urbon committed Dec 7, 2015
1 parent 3b43352 commit 1a46d7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/logstash/plugin_mixins/jdbc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def jdbc_connect
private
def load_drivers(drivers)
drivers.each do |driver|
require driver
begin
require driver
rescue => e
@logger.error("Failed to load #{driver}", :exception => e)
end
end
end

Expand Down

0 comments on commit 1a46d7e

Please sign in to comment.