From b0de92d5b4ad3a4e54b9af951a7f80874ebf2dac Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 22 Jun 2018 21:34:57 +0300 Subject: Use Oxidized.logger for ssh logger From issue #1414 --- lib/oxidized/input/ssh.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/input') diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index f881ff1..d97633d 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -123,7 +123,10 @@ module Oxidized port: (vars(:ssh_port) || 22).to_i, paranoid: secure, keepalive: true, - password: @node.auth[:password], timeout: Oxidized.config.timeout, number_of_password_prompts: 0 + logger: Oxidized.logger, + password: @node.auth[:password], + timeout: Oxidized.config.timeout, + number_of_password_prompts: 0 } auth_methods = vars(:auth_methods) || %w(none publickey password) -- cgit v1.2.1