mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 20:14:34 +00:00
fix(logging): redact CLI argv in lifecycle start logs
Squash merge PR #1297 into dev.
This commit is contained in:
1 parent
be4ee810c1
commit
100308a3cf
2 files changed
+153
-1
No files matched your search
+2
-1
@@ -6,6 +6,7 @@ import { fail } from './utils/ui';
|
||||
import { handleError, runCleanup } from './errors';
|
||||
|
||||
import { createLogger, runWithRequestId } from './services/logging';
|
||||
import { redactArgv } from './services/logging/log-redaction';
|
||||
// Import target adapter system
|
||||
import { registerTarget, ClaudeAdapter, DroidAdapter, CodexAdapter } from './targets';
|
||||
|
||||
@@ -143,7 +144,7 @@ const cliEntryStartedAt = Date.now();
|
||||
const cliEntryLogger = createLogger('cli:entry');
|
||||
runWithRequestId(() => {
|
||||
cliEntryLogger.stage('intake', 'cli.command.start', 'CLI invocation started', {
|
||||
argv: process.argv.slice(2),
|
||||
argv: redactArgv(process.argv.slice(2)),
|
||||
});
|
||||
return main()
|
||||
.then(() => {
|
||||
|
||||
Reference in new issue
Block a user