Skip to content

Conversation

Avery-Dunn
Copy link
Contributor

@Avery-Dunn Avery-Dunn commented Sep 12, 2025

This PR refactors the logging throughout the codebase to be more consistent and efficient by following SLF4J's recommended styles.

Many classes received changes, but same two changes were made to each one:

  • Ensures the Logger instance is created like private static final Logger LOG = ...
  • Avoids unnecessary String operations by using SLF4J's parameterized string format
    • SonarQube considers this a minor issue, and will lead to a very small performance improvement

Only logging statements were affected and there were no changes to the actual messages that get logged, so the actual behavior of the library is unchanged.

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner September 12, 2025 23:05
return StringHelper.convertToMultiValueMap(this.requestParameters);
}

public Logger log() {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used?

Copy link
Contributor Author

@Avery-Dunn Avery-Dunn Sep 17, 2025

Choose a reason for hiding this comment

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

No, and weirdly there are few other places where we have an unused getter for the Logger.

However, this PR was just meant to handle one very low-risk issue in bulk, and I will be handling unused methods like this in smaller, more focused PRs where it's easier to see if there are unintended side effects.

Copy link
Contributor

@gladjohn gladjohn Sep 17, 2025

Choose a reason for hiding this comment

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

Ok thanks. Suggest having a new task for removing unused methods if there isn't one already.

Avery-Dunn and others added 3 commits September 17, 2025 07:56
…nagedIdentitySource.java

Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
@gladjohn
Copy link
Contributor

looks good @Avery-Dunn

@Avery-Dunn Avery-Dunn merged commit b6f54ca into dev Sep 19, 2025
5 checks passed
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.

4 participants