diff options
author | Elvin Efendi <elvin.efendiyev@gmail.com> | 2016-06-02 20:24:18 +0200 |
---|---|---|
committer | Elvin Efendi <elvin.efendiyev@gmail.com> | 2016-06-02 22:12:43 +0200 |
commit | cf4ab7752cd7c6141f2da0a7491c9f1842c88f09 (patch) | |
tree | e9902ca194e86f8a256aeec8abfc0a43ec8f76cb /lib/oxidized/input/ssh.rb | |
parent | 779f20dd18a361b5bde51f3f11c6d048efe100a0 (diff) |
some debug statements
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index fef20d6..aa44b37 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -54,7 +54,7 @@ module Oxidized end def cmd cmd, expect=node.prompt - Oxidized.logger.debug "SSH: #{cmd} @ #{node.name}" + Oxidized.logger.debug "lib/oxidized/input/ssh.rb #{cmd} @ #{node.name} with expect: #{expect.inspect}" if @exec @ssh.exec! cmd else @@ -123,6 +123,7 @@ module Oxidized end def expect regexp + Oxidized.logger.debug "lib/oxidized/input/ssh.rb: expecting #{regexp.inspect} at #{node.name}" Timeout::timeout(Oxidized.config.timeout) do @ssh.loop(0.1) do sleep 0.1 @@ -130,6 +131,5 @@ module Oxidized end end end - end end |