-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
From #55
Note that
node-fetch-retryis inconsistent and includes URLs in errors thrown (e.g. here). It's fair to assume that all errors get logged downstream. So if the policy is to hide URLs by default, then they should not be included in errors either.Also it logs the FetchErrors (e.g. here) which sometimes contain URL as well:
FetchError failed with code: ECONNRESET; message: request to https://www.adobe.com/content/dam/shared/images/product-icons/svg/substance-3d-designer.svg failed, reason: read ECONNRESET Retrying in 103 milliseconds, attempt 1 error: FetchError, request to https://www.adobe.com/content/dam/shared/images/product-icons/svg/substance-3d-designer.svg failed, reason: read ECONNRESETWith a custom logging option (#77) in place, there are two options:
- log urls by default, and let clients with sensitive cases add a custom logger function that skips urls
- do not log urls by default, and let clients who want to log urls add a custom logger function that does so
But for convenience there could also be a third option:
- add extra flag
logDetailsorlogUrlthat would be maybe off by default if security conscious
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working