Merge pull request #7936 from stephen-fox/log-step-download-debug

Use 'log.Printf()' for StepDownload debug instead of 'ui.Say()'.
This commit is contained in:
Megan Marsh 2019-08-01 11:59:41 -07:00 committed by GitHub
commit 95116e37bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -53,9 +53,9 @@ type StepDownload struct {
}
func (s *StepDownload) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
defer ui.Say(fmt.Sprintf("leaving retrieve loop for %s", s.Description))
defer log.Printf("Leaving retrieve loop for %s", s.Description)
ui := state.Get("ui").(packer.Ui)
ui.Say(fmt.Sprintf("Retrieving %s", s.Description))
var errs []error