lib/rundock/backend.rb in rundock-1.1.6 vs lib/rundock/backend.rb in rundock-1.1.7

- old
+ new

@@ -76,9 +76,11 @@ Logger.info(result.stdout.strip) unless result.stdout.strip.blank? Logger.debug("errexit: #{exec_options[:errexit]}") Logger.debug("exit status: #{exit_status}") end + Logger.formatter.simple_output(result.stdout.strip) if Logger.formatter.suppress_logging && !result.stdout.strip.blank? + raise CommandResultStatusError if exec_options[:errexit] && exit_status != 0 result end