Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Oct 4, 2024
1 parent 2cb71e3 commit 5fca50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ authClient := http.Client{
}
```

Or debug all outgoing requests globally within your application:
Or debug all outgoing requests as `curl` globally within your application:
```go
debugMode := os.Getenv("DEBUG") == "true"

http.DefaultTransport = transport.Chain(
http.DefaultTransport,
transport.If(debugMode, transport.LogRequests),
transport.If(debugMode, transport.LogRequests(transport.LogOptions{Concise: true, CURL: true})),
)
```

Expand Down

0 comments on commit 5fca50d

Please sign in to comment.