Instead of changing the request itself as in PR #1102 (which was closed because of this), this PR merely sanitizes the logging.
Added a unit test to ensure the redaction doesn't touch anything other that the token: even if it did it wouldn't have any functional impact, but it would reduce the usefulness of the debug log.
Also added a tiny and unrelated lint fix in interactions_test.goen passant.
I ran make pr-prep as requested - all unit tests passed.
This fixes #844.
Instead of changing the request itself as in PR #1102 (which was closed because of this), this PR merely sanitizes the logging.
Added a unit test to ensure the redaction doesn't touch anything other that the token: even if it did it wouldn't have any functional impact, but it would reduce the usefulness of the debug log.
Also added a tiny and unrelated lint fix in
interactions_test.go
en passant.I ran
make pr-prep
as requested - all unit tests passed.