From 1917760c3d778c98947ee1e0799e5b014a43e5ec Mon Sep 17 00:00:00 2001 From: Jonathan del Strother Date: Wed, 11 Dec 2024 19:00:27 +0000 Subject: [PATCH] Show hook-output by default Previously hooks could write to stdout, but this wouldn't be visible unless `-v` was passed to increase the verbosity --- lib/kamal/cli/base.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/kamal/cli/base.rb b/lib/kamal/cli/base.rb index 4aebfd902..61cf68ff7 100644 --- a/lib/kamal/cli/base.rb +++ b/lib/kamal/cli/base.rb @@ -137,7 +137,9 @@ def run_hook(hook, **extra_details) say "Running the #{hook} hook...", :magenta with_env KAMAL.hook.env(**details, **extra_details) do run_locally do - execute *KAMAL.hook.run(hook) + KAMAL.with_verbosity(:debug) do + execute *KAMAL.hook.run(hook) + end end rescue SSHKit::Command::Failed => e raise HookError.new("Hook `#{hook}` failed:\n#{e.message}")