Skip to content

Commit

Permalink
chore: debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhil committed Aug 18, 2023
1 parent 487ba11 commit 598de7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/yandexcloud/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ func (p *provider) createInstance(
return nil, fmt.Errorf("failed to template: %w", err)
}

metadata["user-data"] = buf.String()
logger.FromContext(ctx).
WithField("user-data", buf.String()).
WithField("ssh-user", p.sshUser).
WithField("ssh-authorized-keys", p.sshAuthorizedKeys)
WithField("ssh-authorized-keys", p.sshAuthorizedKeys).
Debug("creating instance")

metadata["user-data"] = buf.String()

request := &compute.CreateInstanceRequest{
FolderId: folderID,
Expand Down

0 comments on commit 598de7b

Please sign in to comment.