summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authorJason Ackley <jason@ackley.net>2018-04-22 14:00:42 -0500
committerJason Ackley <jason@ackley.net>2018-04-22 14:00:42 -0500
commite848b3caba1dadbb1b46ada06b074fbf796fca17 (patch)
treea45b015074e0b2603efa66c9c83e4106ced54104 /lib/oxidized/input/ssh.rb
parent2648b1bb271727976e2d96123fcd51d52af39f79 (diff)
Change the debug log fsync to a flush
fsync() can be expensive on OSes and induce timeout failures when running with input debugging of SSH sessions.
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 27e81e0..37d6e75 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -100,7 +100,7 @@ module Oxidized
ch.on_data do |_ch, data|
if Oxidized.config.input.debug?
@log.print data
- @log.fsync
+ @log.flush
end
@output << data
@output = @node.model.expects @output