From d7493892f482eb9477c0030fa55249cecfdab4d4 Mon Sep 17 00:00:00 2001 From: Julien Vey Date: Tue, 14 Oct 2014 15:00:25 +0200 Subject: [PATCH] Allow SSH LogLevel to be overridden --- lib/vagrant/util/ssh.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/ssh.rb b/lib/vagrant/util/ssh.rb index 44e0403aa..0a71613c7 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -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"]