Skip to content

Conversation

@wycm
Copy link

@wycm wycm commented Oct 23, 2019

Optimization log

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 23, 2019
@philwebb
Copy link
Member

Thanks for the PR but I'm not sure we should apply all of these. Some of these log statements happen quite infrequently and as such don't need optimizations. I'll assign this to 2.2.x and we can take a look in more detail before we merge.

@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 23, 2019
@philwebb philwebb added this to the 2.2.x milestone Oct 23, 2019
philwebb pushed a commit that referenced this pull request Oct 24, 2019
Guard logger calls to ensure that they are only made when the
level is set.

See gh-18710
philwebb added a commit that referenced this pull request Oct 24, 2019
@philwebb philwebb closed this in f3dcf10 Oct 24, 2019
@philwebb
Copy link
Member

Thanks for finding these @wycm. I've polished things a bit in commit 597baf9 mainly by making use of Spring Frameworks new LogMessage class. I've also remove a few if statements where the log message was a simple String so relatively cheap.

Thanks again!

@philwebb philwebb modified the milestones: 2.2.x, 2.2.1 Oct 24, 2019
@wilkinsona wilkinsona reopened this Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants