From 42ce10d6309755c362b08c1e2e70a84dbd3a6bc0 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 4 Jul 2018 13:33:21 +0100 Subject: Use info for command output logging As this is useful to see, and not currently appearing in the log file when running in the Rails production environment. --- lib/shell_utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shell_utils.rb b/lib/shell_utils.rb index b426e44..b22e791 100644 --- a/lib/shell_utils.rb +++ b/lib/shell_utils.rb @@ -46,14 +46,14 @@ module ShellUtils ] end - logger.debug("#{self.class}: Running command #{command.join(' ')}") + logger.info("#{self.class}: Running command #{command.join(' ')}") Open3.popen2e(*command) do |_stdin, stdout_and_stderr, wait_thr| logger.info("#{self.class}: commmand running, pid #{wait_thr.pid}") output = [] stdout_and_stderr.each_line do |line| - logger.debug(self.class) { line.chomp } + logger.info(self.class) { line.chomp } output << line end -- cgit v1.2.3