You can do this by defining the following method in your deploy.rb file:
def with_verbosity(verbosity_level)
old_verbosity = SSHKit.config.output_verbosity
begin
SSHKit.config.output_verbosity = verbosity_level
yield
ensure
SSHKit.config.output_verbosity = old_verbosity
end
end
Then simply call it like this:
with_verbosity(Logger::DEBUG) do
execute "./blah.sh"
end