Merge pull request #10482 from briancain/redirect-version-check-to-stderr

Fixes #10463: Display version update on stderr instead of stdout
This commit is contained in:
Brian Cain 2018-12-06 15:10:06 -08:00 committed by GitHub
commit b6fb971350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ module Vagrant
ui = Vagrant::UI::Prefixed.new(env.ui, "vagrant")
if latest_version > installed_version
@logger.info("new version of Vagrant available - #{latest_version}")
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version, installed_version: installed_version))
env.ui.info("")
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version, installed_version: installed_version), channel: :error)
env.ui.info("", channel: :error)
else
@logger.debug("vagrant is currently up to date")
end