summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authornopedial <sam@arahant.net>2016-02-05 22:15:12 +0000
committernopedial <sam@arahant.net>2016-02-05 22:15:12 +0000
commitb53e1ed17775eea0b32cd68f4badfb354ee5842b (patch)
tree793a14d9729c0e9908dde3fddbd64399f41e7f85 /lib/oxidized/input/ssh.rb
parentae1fc4d7b79e818274b0325bc52e9eeb03dda1f5 (diff)
version 0.12.00.12.0
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 69b36b0..aab1dc8 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -79,7 +79,10 @@ module Oxidized
def shell_open ssh
@ses = ssh.open_channel do |ch|
ch.on_data do |_ch, data|
- @log.print data if Oxidized.config.input.debug?
+ if Oxidized.config.input.debug?
+ @log.print data
+ @log.fsync
+ end
@output << data
@output = @node.model.expects @output
end