lib/watir/logger.rb in watir-6.16.5 vs lib/watir/logger.rb in watir-6.17.0

- old
+ new

@@ -32,12 +32,11 @@ @logger.progname = progname @ignored = [] end def ignore(ids) - ids = [ids] unless ids.is_a? Array - @ignored.concat ids.map(&:to_s) + @ignored.concat Array(ids).map(&:to_s) end def output=(io) @logger.reopen(io) end @@ -92,9 +91,13 @@ return if @ignored.include?('deprecations') || (@ignored & ids.map!(&:to_s)).any? msg = ids.empty? ? '' : "[#{ids.map(&:inspect).join(', ')}] " ref_msg = reference.empty? ? '.' : "; see explanation for this deprecation: #{reference}." warn "[DEPRECATION] #{msg}#{old} is deprecated. Use #{new} instead#{ref_msg}" + end + + def selenium=(val) + Selenium::WebDriver.logger.level = val end private def create_logger(output)