Skip to content

Commit 2dffe0a

Browse files
Copilotlpcox
andcommitted
Fix additional unsanitized args logging in launcher and connection
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent 13014f2 commit 2dffe0a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/launcher/log_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (l *Launcher) logLaunchError(serverID, sessionID string, err error, serverC
7272
log.Printf("[LAUNCHER] Error: %v", err)
7373
log.Printf("[LAUNCHER] Debug Information:")
7474
log.Printf("[LAUNCHER] - Command: %s", serverCfg.Command)
75-
log.Printf("[LAUNCHER] - Args: %v", serverCfg.Args)
75+
log.Printf("[LAUNCHER] - Args: %v", sanitize.SanitizeArgs(serverCfg.Args))
7676
log.Printf("[LAUNCHER] - Env vars: %v", sanitize.TruncateSecretMap(serverCfg.Env))
7777
log.Printf("[LAUNCHER] - Running in container: %v", l.runningInContainer)
7878
log.Printf("[LAUNCHER] - Is direct command: %v", isDirectCommand)

internal/mcp/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func NewConnection(ctx context.Context, serverID, command string, args []string,
279279
isHTTP: false,
280280
}
281281

282-
log.Printf("Started MCP server: %s %v", command, args)
282+
log.Printf("Started MCP server: %s %v", command, sanitize.SanitizeArgs(args))
283283
return conn, nil
284284
}
285285

0 commit comments

Comments
 (0)