refactor: replace string concatenation with {} placeholders in log statements
Signed-off-by: Sun Yuhan <sunyuhan1998@users.noreply.github.com>
This commit is contained in:
parent
dc477fc522
commit
d282d40a38
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue