我正在使用Capistrano 3,我不知道如何抑制调试输出
这是我的任务
namespace :install do
task :download do
on roles(:app) do
execute("wget http://dl.bintray.com/groovy/maven/groovy-binary-2.2.2.zip")
end
end
end
以下是我开始编写脚本的方法
$ cap --quiet development install:download
这是垃圾邮件输出
INFO [45917f64] Running /usr/bin/env wget http://dl.bintray.com/groovy/maven/groovy-binary-2.2.2.zip on 192.168.33.10
DEBUG [45917f64] Command: wget http://dl.bintray.com/groovy/maven/groovy-binary- 2.2.2.zip
DEBUG [45917f64] --2014-04-16 07:11:53-- http://dl.bintray.com/groovy/maven/groovy-binary-2.2.2.zip
DEBUG [45917f64] Resolving dl.bintray.com (dl.bintray.com)...
DEBUG [45917f64] 5.153.24.114
DEBUG [45917f64] Connecting to dl.bintray.com (dl.bintray.com)|5.153.24.114|:80...
DEBUG [45917f64] connected.
DEBUG [45917f64] HTTP request sent, awaiting response...
DEBUG [45917f64] 200 OK
DEBUG [45917f64] Length: 29713408 (28M) [application/zip]
DEBUG [45917f64] Saving to: `groovy-binary-2.2.2.zip.8'
DEBUG [45917f64]
DEBUG [45917f64] 0K .....
DEBUG [45917f64] .
DEBUG [45917f64] ..
DEBUG [45917f64] .. ...
我还尝试将其放在代码的各个部分
SSHKit.config.output_verbosity=Logger::ERROR
我仍然使用DEBUG输出进行过度调整。
答案 0 :(得分:4)
好的 - 这很简单
# Default value for :log_level is :debug
set :log_level, :error