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

Log TokenNotFoundException at the debug level #1011

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Aug 14, 2024

Motivation:

TokenNotFoundException may be useful to debug a request failure but the warning log would be noisy to the maintainers of a Central Dogma cluster.

Modifications:

  • Use the DEBUG level to log TokenNotFoundException.
    • IllegalArgumentException is also logged at DEBUG.

Result:

TokenNotFoundException is now logged at the DEBUG level in ApplicationTokenAuthorizer.

Motivation:

`TokenNotFoundException` may be useful to debug a request failure but
the warning log would be noisy to the maintainers of a Central Dogma
cluster.

Modifications:

- Use `DEBUG` level to log `TokenNotFoundException`.
  - `IllegalArgumentException` is also logged at `DEBUG`.

Result:

`TokenNotFoundException` is now logged at the `DEBUG` level in
`ApplicationTokenAuthorizer`.
@ikhoon ikhoon added the cleanup label Aug 14, 2024
@ikhoon ikhoon added this to the 0.68.1 milestone Aug 14, 2024
Copy link
Contributor

@minwoox minwoox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

@ikhoon ikhoon merged commit 93f839b into line:main Aug 16, 2024
9 of 10 checks passed
@ikhoon ikhoon deleted the no-warn-TokenNotFoundException branch August 16, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants