Skip to content

Commit

Permalink
docs: fix regex pattern in logger.md examples (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasawayuki committed Jan 11, 2022
1 parent 295f112 commit 026e956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware/response/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You can filter sensitive information from Faraday logs using a regex matcher:
```ruby
conn = Faraday.new(url: 'http://sushi.com') do |faraday|
faraday.response :logger do | logger |
logger.filter(/(api_key=)(\w+)/, '\1[REMOVED]')
logger.filter(/(api_key=)([^&]+)/, '\1[REMOVED]')
end
end

Expand Down

0 comments on commit 026e956

Please sign in to comment.