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

Refactor: Reuse existing variable for logger name in SimpleFormatter #43632

Closed
wants to merge 1 commit into from

Conversation

minwoo1999
Copy link
Contributor

In the format method of SimpleFormatter, I noticed that the source variable and record.getLoggerName() are used interchangeably, even though they represent the exact same value. Since the result of getLoggerName() is already stored in the source variable, it makes sense to reuse it rather than calling the method again. This change simplifies the code, avoids redundancy, and makes it more consistent and easier to read.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 30, 2024
@minwoo1999 minwoo1999 closed this Dec 30, 2024
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants