From 125870d0a89460c62568442720825982fa75acdd Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 6 Jul 2024 21:20:20 -0300 Subject: [PATCH] Unify stderr/stdout of faaso_run --- src/daemon/funko.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/funko.cr b/src/daemon/funko.cr index abfd904..3ac4574 100644 --- a/src/daemon/funko.cr +++ b/src/daemon/funko.cr @@ -130,7 +130,8 @@ module Funko Log.info { "Running faaso [#{args.join(", ")}, -l]" } Process.run( command: "faaso", - args: args + ["-l"], # Always local in the server + args: args + ["-l", "2>&1"], # Always local in the server + shell: true, ) do |process| loop do env.response.print process.output.gets(chomp: false) @@ -138,7 +139,6 @@ module Funko Fiber.yield break if process.terminated? end - p! process.error.peek true end # FIXME: find a way to raise an exception on failure