Skip to content

fix: don't print undecodable bank responses outside debug mode - #46

Open
agiledivider wants to merge 1 commit into
robocode13:mainfrom
agiledivider:fix/no-account-data-in-error-logs
Open

agiledivider wants to merge 1 commit into
robocode13:mainfrom
agiledivider:fix/no-account-data-in-error-logs

Conversation

@agiledivider

Copy link
Copy Markdown

When a response can't be decoded, HttpClient printed its whole content with console.error. That content holds account data (balances, bookings, names), which then ends up in application logs.

It is now printed only when debugging was asked for; the error is still thrown.

Tests: src/tests/httpClientErrorLog.test.ts. Existing tests and the build (tsc, Biome) pass.

When a response can't be decoded, HttpClient printed its whole content.
It holds account data (balances, bookings, names), which then ended up
in application logs. It is now printed only in debug mode; the error is
still thrown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant