diff options
author | Jason Ackley <jason@ackley.net> | 2018-04-22 14:00:42 -0500 |
---|---|---|
committer | Jason Ackley <jason@ackley.net> | 2018-04-22 14:00:42 -0500 |
commit | e848b3caba1dadbb1b46ada06b074fbf796fca17 (patch) | |
tree | a45b015074e0b2603efa66c9c83e4106ced54104 /lib/oxidized/input/ssh.rb | |
parent | 2648b1bb271727976e2d96123fcd51d52af39f79 (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.rb | 2 |
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 |