Skip to content

Commit

Permalink
Show hook-output by default
Browse files Browse the repository at this point in the history
Previously hooks could write to stdout, but this wouldn't be visible
unless `-v` was passed to increase the verbosity
  • Loading branch information
jdelStrother committed Dec 11, 2024
1 parent 16fb3ad commit 1917760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kamal/cli/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 1917760

Please sign in to comment.