Quellcode durchsuchen

KCM-3815 - Ratecard Debug Log (#3102)

Signed-off-by: Nik Willwerth <nwillwerth@kubecost.com>
nik-kc vor 1 Jahr
Ursprung
Commit
911211b2c2
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      pkg/cloud/azure/provider.go

+ 2 - 1
pkg/cloud/azure/provider.go

@@ -849,7 +849,8 @@ func (az *Azure) DownloadPricingData() error {
 
 	rateCardFilter := fmt.Sprintf("OfferDurableId eq '%s' and Currency eq '%s' and Locale eq 'en-US' and RegionInfo eq '%s'", config.AzureOfferDurableID, config.CurrencyCode, config.AzureBillingRegion)
 
-	log.Infof("Using ratecard query %s", rateCardFilter)
+	log.Infof("Using azureRateCard query %s", rateCardFilter)
+	log.Debugf("Using azureRateCard URI %s", rcClient.BaseURI)
 	// rate-card client is old, it can hang indefinitely in some cases
 	// this happens on the main thread, so it may block the whole app
 	// there is can be a better way to set timeout for the client