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