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: Simplify LogRecord formatting by removing redundant variabl… #43630

Closed
wants to merge 1 commit into from

Conversation

minwoo1999
Copy link
Contributor

@minwoo1999 minwoo1999 commented Dec 30, 2024

In this code, I noticed that source and record.getLoggerName() are expected to return the same value. Based on this observation, I believe it’s more efficient and cleaner to reuse the source variable instead of calling record.getLoggerName() multiple times. This approach maintains the functionality while improving readability and reducing redundancy in the code.

@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