Просмотр исходного кода

fix: correct TotalCost log context to CostResponse.TotalCost

TotalCost is a field on CostResponse, not CustomCost. The inaccurate
log context made failure triage harder than it needed to be. Trivial
label fix flagged by automated review on PR #3735.

Signed-off-by: Warwick Peatey <warwick@automatic.systems>
Assisted-by: Claude Code
Warwick Peatey 1 месяц назад
Родитель
Сommit
8c9f69ebf4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      pkg/customcost/queryservice.go

+ 1 - 1
pkg/customcost/queryservice.go

@@ -160,7 +160,7 @@ func convertResponseFields(resp *CostResponse, converter currency.Converter, tar
 		return float32(converted)
 	}
 
-	resp.TotalCost = tryConvert32(resp.TotalCost, "CustomCost.TotalCost")
+	resp.TotalCost = tryConvert32(resp.TotalCost, "CostResponse.TotalCost")
 
 	for _, cc := range resp.CustomCosts {
 		if cc == nil {