Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OKAPI-1207: LoginClient/RefreshClient: No stacktrace, compress JSON #1382

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

julianladisch
Copy link
Contributor

https://folio-org.atlassian.net/browse/OKAPI-1207

okapi-common' LoginClient and RefreshClient fail if user is blocked or password is wrong. It causes a log entry with stacktrace and multi-line JSON body.

The stacktrace is useless because it only shows Netty and Vert.x interals.

The JSON body is pretty-printed taking multiple lines and should be compressed into a single line.

The useless verbosity blows up the logs and makes it more difficult for sysops to browse the logs.

…JSON

https://folio-org.atlassian.net/browse/OKAPI-1207

okapi-common' LoginClient and RefreshClient fail if user is blocked or password is wrong.
It causes a log entry with stacktrace and multi-line JSON body.

The stacktrace is useless because it only shows Netty and Vert.x interals.

The JSON body is pretty-printed taking multiple lines and should be compressed into a single line.

The useless verbosity blows up the logs and makes it more difficult for sysops to browse the logs.
@julianladisch julianladisch merged commit 6931ac3 into master Mar 7, 2025
5 checks passed
@julianladisch julianladisch deleted the OKAPI-1207 branch March 7, 2025 14:20
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.

2 participants