From a980d9f2434bd0b7f154ea9b40a0beaf53a6d739 Mon Sep 17 00:00:00 2001 From: Crumb Owl Date: Sun, 6 Jul 2025 19:34:05 +0000 Subject: [PATCH] ProductBarcode: backend: remove API response verbosity --- .../app/api/handlers/v1/v1_ctrl_product_search.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/app/api/handlers/v1/v1_ctrl_product_search.go b/backend/app/api/handlers/v1/v1_ctrl_product_search.go index 5b8391ca..ffd7733b 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_product_search.go +++ b/backend/app/api/handlers/v1/v1_ctrl_product_search.go @@ -143,9 +143,9 @@ func (ctrl *V1Controller) HandleProductSearchFromBarcode(conf config.BarcodeAPIC return nil, err } - // Convert the body to type string - sb := string(body) - log.Info().Msg("Response: " + sb) + // Uncomment the following string for debug + // sb := string(body) + // log.Debug().Msg("Response: " + sb) var result UPCITEMDBResponse if err := json.Unmarshal(body, &result); err != nil { // Parse []byte to go struct pointer @@ -216,9 +216,9 @@ func (ctrl *V1Controller) HandleProductSearchFromBarcode(conf config.BarcodeAPIC return nil, err } - // Convert the body to type string - sb := string(body) - log.Info().Msg("Response: " + sb) + // Uncomment the following string for debug + // sb := string(body) + // log.Debug().Msg("Response: " + sb) var result BARCODESPIDER_COMResponse if err := json.Unmarshal(body, &result); err != nil { // Parse []byte to go struct pointer