From 8759cbf3cf22e1704fda46149416201f23204572 Mon Sep 17 00:00:00 2001 From: clD11 <23483715+clD11@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:45:15 +0000 Subject: [PATCH] fix: log correct http status (#2757) --- services/skus/controllers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/skus/controllers.go b/services/skus/controllers.go index 522ff7548..fcdca6569 100644 --- a/services/skus/controllers.go +++ b/services/skus/controllers.go @@ -827,7 +827,7 @@ func getOrderCredsByID(svc *Service, legacyMode bool) handlers.AppHandler { if legacyMode { suCreds, ok := creds.([]OrderCreds) if !ok { - l.Err(errTypeAssertion).Str("orderID", orderID.String()).Str("itemID", itemIDv.String()).Int("status", status).Msg("error getting credentials type assertion") + l.Err(errTypeAssertion).Str("orderID", orderID.String()).Str("itemID", itemIDv.String()).Int("status", http.StatusInternalServerError).Msg("error getting credentials type assertion") return handlers.WrapError(err, "Error getting credentials", http.StatusInternalServerError) } @@ -837,7 +837,7 @@ func getOrderCredsByID(svc *Service, legacyMode bool) handlers.AppHandler { } } - l.Err(errNotFound).Str("orderID", orderID.String()).Str("itemID", itemIDv.String()).Int("status", status).Msg("error finding creds legacy") + l.Err(errNotFound).Str("orderID", orderID.String()).Str("itemID", itemIDv.String()).Int("status", http.StatusNotFound).Msg("error finding creds legacy") return handlers.WrapError(err, "Error getting credentials", http.StatusNotFound) }