diff --git a/lib/logstash/plugin_mixins/jdbc.rb b/lib/logstash/plugin_mixins/jdbc.rb index 2790b60..897a1ef 100644 --- a/lib/logstash/plugin_mixins/jdbc.rb +++ b/lib/logstash/plugin_mixins/jdbc.rb @@ -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