Skip to content

Commit

Permalink
chore: added logging trace for spot price on azure
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
  • Loading branch information
adrianriobo committed Sep 19, 2023
1 parent ebd4951 commit ae3eae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provider/azure/action/windows/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (r *WindowsRequest) valuesWetherSpot() (*string, *float64, error) {
VMTypes: []string{r.VMSize},
OSType: "windows",
})
logging.Debugf("Best spot price option found: %v", bsc)
if err != nil {
return nil, nil, err
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/provider/azure/module/spot-price/spot-price.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph"
"github.com/adrianriobo/qenvs/pkg/util/logging"
)

const (
Expand Down Expand Up @@ -129,6 +130,7 @@ func getPriceHistory(ctx context.Context, client *armresourcegraph.Client,
}
results = append(results, rStruct)
}
logging.Debugf("spot prices history %v", results)
return results, nil
}

Expand Down

0 comments on commit ae3eae9

Please sign in to comment.