Commit e45b1b3
authored
perf(logging): optimize debug logging in PromptChatMemoryAdvisor (#3448)
- Enclosed debug logging statements within an isDebugEnabled() check
- Reduced unnecessary method calls and object creations when debug logging is disabled
Auto-cherry-pick to 1.0.x
Signed-off-by: Ahoo Wang <[email protected]>1 parent 925def2 commit e45b1b3
File tree
1 file changed
+12
-7
lines changed- spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/advisor
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| |||
0 commit comments