Skip to content

Commit

Permalink
adding more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Dec 15, 2023
1 parent 10651c5 commit 3f3cf7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/api/connectors/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func NewInventoryClientWithHttpRequestDoer(cfg *viper.Viper, doer HttpRequestDoe
RequestEditor: func(ctx context.Context, req *http.Request) error {
req.Header.Set(constants.HeaderRequestId, request_id.GetReqID(ctx))

fmt.Printf("*** inside request editor")
if identity, ok := ctx.Value(constants.HeaderIdentity).(string); ok {
fmt.Printf("*** setting header - %s - %s\n", constants.HeaderIdentity, identity)
req.Header.Set(constants.HeaderIdentity, identity)
Expand Down

0 comments on commit 3f3cf7e

Please sign in to comment.