From 2fd39ce595def57adf1f62fe2d8deccdbad98011 Mon Sep 17 00:00:00 2001 From: Corey Osman Date: Fri, 1 Nov 2019 09:42:47 -0700 Subject: [PATCH] Fix gh-33 quiet the output of sftp transfer time * Previously the output of the travel time and the entire object was dumped to the console causing massive amounts of output. * This fixes that by removing the self object from being dumped and also setting the log level to debug instead of info. --- lib/kitchen/transport/sftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kitchen/transport/sftp.rb b/lib/kitchen/transport/sftp.rb index 44b3803..0d137a5 100644 --- a/lib/kitchen/transport/sftp.rb +++ b/lib/kitchen/transport/sftp.rb @@ -100,7 +100,7 @@ def upload(locals, remote) time = Benchmark.realtime do sftp_upload!(local, full_remote, options) end - logger.info("[SFTP] Time taken to upload #{local} to #{self}:#{full_remote}: %.2f sec" % time) + logger.debug("[SFTP] Time taken to upload #{local} to #{full_remote}: %.2f sec" % time) end end