Reduce servlet logging verbosity from INFO to DEBUG
Move verbose per-request logging (request body, session management, SSE connections, method processing) from INFO to DEBUG level. Keep INFO for significant events like new Visit creation.
Showing
3 changed files
with
10 additions
and
23 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -190,27 +190,14 @@ class UiNarrativeBuilder { | ... | @@ -190,27 +190,14 @@ class UiNarrativeBuilder { |
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | if (navigation.isEmpty()) { | ||
| 195 | def parentPath = getParentPath(currentPath) | ||
| 196 | if (parentPath) { | ||
| 197 | navigation << "To go back, call moqui_render_screen(path='${parentPath}')." | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| 201 | return navigation | ||
| 202 | } | ||
| 203 | } | ||
| 204 | } | ||
| 205 | } | ||
| 206 | |||
| 207 | if (navigation.isEmpty()) { | 194 | if (navigation.isEmpty()) { |
| 208 | def parentPath = getParentPath(currentPath) | 195 | def parentPath = getParentPath(currentPath) |
| 209 | if (parentPath) { | 196 | if (parentPath) { |
| 210 | navigation << "To go back, call moqui_browse_screens(path='${parentPath}')." | 197 | navigation << "To go back, call moqui_browse_screens(path='${parentPath}')." |
| 211 | } | 198 | } |
| 212 | } | 199 | } |
| 213 | 200 | ||
| 214 | return navigation | 201 | return navigation |
| 215 | } | 202 | } |
| 216 | 203 | ... | ... |
| ... | @@ -56,8 +56,8 @@ class VisitBasedMcpSession implements MoquiMcpTransport { | ... | @@ -56,8 +56,8 @@ class VisitBasedMcpSession implements MoquiMcpTransport { |
| 56 | metadata.mcpTransportType = "SSE" | 56 | metadata.mcpTransportType = "SSE" |
| 57 | metadata.mcpMessageCount = 0 | 57 | metadata.mcpMessageCount = 0 |
| 58 | saveSessionMetadata(metadata) | 58 | saveSessionMetadata(metadata) |
| 59 | 59 | ||
| 60 | logger.info("MCP Session initialized for Visit ${visit.visitId}") | 60 | logger.debug("MCP Session initialized for Visit ${visit.visitId}") |
| 61 | } | 61 | } |
| 62 | } catch (Exception e) { | 62 | } catch (Exception e) { |
| 63 | logger.warn("Failed to initialize MCP session for Visit ${visit.visitId}: ${e.message}") | 63 | logger.warn("Failed to initialize MCP session for Visit ${visit.visitId}: ${e.message}") |
| ... | @@ -90,10 +90,10 @@ class VisitBasedMcpSession implements MoquiMcpTransport { | ... | @@ -90,10 +90,10 @@ class VisitBasedMcpSession implements MoquiMcpTransport { |
| 90 | if (!active.compareAndSet(true, false)) { | 90 | if (!active.compareAndSet(true, false)) { |
| 91 | return // Already closed | 91 | return // Already closed |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | closing.set(true) | 94 | closing.set(true) |
| 95 | logger.info("Gracefully closing MCP session ${visit.visitId}") | 95 | logger.debug("Gracefully closing MCP session ${visit.visitId}") |
| 96 | 96 | ||
| 97 | try { | 97 | try { |
| 98 | // Send graceful shutdown notification | 98 | // Send graceful shutdown notification |
| 99 | def shutdownMessage = new JsonRpcNotification("shutdown", [ | 99 | def shutdownMessage = new JsonRpcNotification("shutdown", [ |
| ... | @@ -116,9 +116,9 @@ class VisitBasedMcpSession implements MoquiMcpTransport { | ... | @@ -116,9 +116,9 @@ class VisitBasedMcpSession implements MoquiMcpTransport { |
| 116 | if (!active.compareAndSet(true, false)) { | 116 | if (!active.compareAndSet(true, false)) { |
| 117 | return // Already closed | 117 | return // Already closed |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | logger.info("Closing MCP session ${visit.visitId} (messages sent: ${messageCount.get()})") | 120 | logger.debug("Closing MCP session ${visit.visitId} (messages sent: ${messageCount.get()})") |
| 121 | 121 | ||
| 122 | try { | 122 | try { |
| 123 | // Send final close event if writer is still available | 123 | // Send final close event if writer is still available |
| 124 | if (writer && !writer.checkError()) { | 124 | if (writer && !writer.checkError()) { | ... | ... |
-
Please register or sign in to post a comment