lib/webhookd/command_runner.rb in webhookd-0.0.7 vs lib/webhookd/command_runner.rb in webhookd-0.0.8
- old
+ new
@@ -13,21 +13,21 @@
def run
begin
logger.info "Running command: #{@command}"
Open3::popen2e(@command) { |stdin, stdout_err, wait_thr|
while line = stdout_err.gets
- logger.debug("Command output: #{line.strip}")
+ logger.info("STDOUTERR: #{line.strip}")
end
if wait_thr.value.success?
- logger.info "command successful"
+ logger.info "command successfully finished"
return true
else
logger.error "command failed"
return false
end
}
rescue Exception => e
- logger.fatal "Completely failed: #{e.message}"
+ logger.fatal "command running completely failed: #{e.message}"
end
end
end
end