diff --git a/lib/train/transports/cisco_ios_connection.rb b/lib/train/transports/cisco_ios_connection.rb index 21641836..0d5069a0 100644 --- a/lib/train/transports/cisco_ios_connection.rb +++ b/lib/train/transports/cisco_ios_connection.rb @@ -7,8 +7,6 @@ class BadEnablePassword < Train::TransportError; end def initialize(options) super(options) - logger.level = Logger::INFO - # Extract options to avoid passing them in to `Net::SSH.start` later @host = options.delete(:host) @user = options.delete(:user) diff --git a/lib/train/transports/ssh.rb b/lib/train/transports/ssh.rb index 4f72feba..6437fcef 100644 --- a/lib/train/transports/ssh.rb +++ b/lib/train/transports/ssh.rb @@ -218,6 +218,7 @@ def create_new_connection(options, &block) # We will also support the sudo password field for the same purpose # for the interim. # TODO ios_options[:enable_password] = @options[:enable_password] || @options[:sudo_password] + ios_options[:logger] = @options[:logger] ios_options.merge!(@connection_options) conn = CiscoIOSConnection.new(ios_options) end