lib/logstash/inputs/jdbc.rb in logstash-integration-jdbc-5.4.2 vs lib/logstash/inputs/jdbc.rb in logstash-integration-jdbc-5.4.3

- old
+ new

@@ -404,10 +404,10 @@ begin # If there is a permission error in the delete of the old file inform the user to give # the correct access rights ::File.delete(old_default_path.to_path) @logger.info("Successfully moved the #{old_default_path.to_path} into #{metadata_new_path.to_path}") - rescue e + rescue => e @logger.warn("Using new metadata file at #{metadata_new_path.to_path} but #{old_default_path} can't be removed.") end end end