Skip to content

perf(logging): optimize debug logging in PromptChatMemoryAdvisor #3448

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

Merged

Conversation

Ahoo-Wang
Copy link
Contributor

  • Enclosed debug logging statements within an isDebugEnabled() check
  • Reduced unnecessary method calls and object creations when debug logging is disabled

- Enclosed debug logging statements within an isDebugEnabled() check
- Reduced unnecessary method calls and object creations when debug logging is disabled

Signed-off-by: Ahoo Wang <[email protected]>
@ilayaperumalg
Copy link
Member

@Ahoo-Wang Thanks for the code cleanup!

@ilayaperumalg ilayaperumalg merged commit e45b1b3 into spring-projects:main Jun 6, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Jun 6, 2025
- Enclosed debug logging statements within an isDebugEnabled() check
- Reduced unnecessary method calls and object creations when debug logging is disabled

Signed-off-by: Ahoo Wang <[email protected]>
(cherry picked from commit e45b1b3)
@Ahoo-Wang Ahoo-Wang deleted the PromptChatMemoryAdvisor branch June 6, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants