diff --git a/lib/kamal/cli/base.rb b/lib/kamal/cli/base.rb index 4aebfd90..61cf68ff 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}")