aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-04 13:33:21 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-04 13:33:21 +0100
commit42ce10d6309755c362b08c1e2e70a84dbd3a6bc0 (patch)
tree4000b301aacfe2ac1e36aae3c04c6d4388b2b9dc
parent399c87bcad5016882b2918fe2d46f4edee6250a0 (diff)
downloadgovuk-mini-environment-admin-42ce10d6309755c362b08c1e2e70a84dbd3a6bc0.tar
govuk-mini-environment-admin-42ce10d6309755c362b08c1e2e70a84dbd3a6bc0.tar.gz
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.
-rw-r--r--lib/shell_utils.rb4
1 files 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