refactor: replace string concatenation with {} placeholders in log statements

Signed-off-by: Sun Yuhan <sunyuhan1998@users.noreply.github.com>
This commit is contained in:
Sun Yuhan 2025-07-10 20:14:43 +08:00 • committed by Christian Tzolov
commit d282d40a38

View file

@ -269,7 +269,7 @@ public class StdioClientTransport implements McpClientTransport {
}
catch (Exception e) {
if (!isClosing) {
logger.error("Error processing inbound message for line: " + line, e);
logger.error("Error processing inbound message for line: {}", line, e);
}
break;
}
@ -366,7 +366,7 @@ public class StdioClientTransport implements McpClientTransport {
}
})).doOnNext(process -> {
if (process.exitValue() != 0) {
logger.warn("Process terminated with code " + process.exitValue());
logger.warn("Process terminated with code {}", process.exitValue());
}
else {
logger.info("MCP server process stopped");