Merge pull request #4638 from julienvey/ssh_log_level

Allow SSH LogLevel to be overridden in Vagrant.Util.SSH.exec
This commit is contained in:
Mitchell Hashimoto 2014-10-18 16:08:09 -07:00
commit bed1f8335f
1 changed files with 3 additions and 1 deletions

View File

@ -102,12 +102,14 @@ module Vagrant
options[:username] = ssh_info[:username]
options[:private_key_path] = ssh_info[:private_key_path]
log_level = ssh_info[:log_level] || "FATAL"
# Command line options
command_options = [
"-p", options[:port].to_s,
"-o", "Compression=yes",
"-o", "DSAAuthentication=yes",
"-o", "LogLevel=FATAL",
"-o", "LogLevel=#{log_level}",
"-o", "StrictHostKeyChecking=no",
"-o", "UserKnownHostsFile=/dev/null"]