Swap MCP client implementations to rmcp (#3634)
This commit is contained in:
@@ -12,7 +12,7 @@ LOG_FILE="/tmp/mcp.log"
|
||||
# Function for logging
|
||||
log() {
|
||||
local MESSAGE="$1"
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') - $MESSAGE" | tee -a "$LOG_FILE"
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') - $MESSAGE" | tee -a "$LOG_FILE" >&2
|
||||
}
|
||||
|
||||
# Trap errors and log them before exiting
|
||||
|
||||
@@ -12,7 +12,7 @@ LOG_FILE="/tmp/mcp.log"
|
||||
# Function for logging
|
||||
log() {
|
||||
local MESSAGE="$1"
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') - $MESSAGE" | tee -a "$LOG_FILE"
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') - $MESSAGE" | tee -a "$LOG_FILE" >&2
|
||||
}
|
||||
|
||||
# Trap errors and log them before exiting
|
||||
|
||||
Reference in New Issue
Block a user