Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 9750bc4

Browse files
Merge pull request #934 from ssbc/redact-private-key
Redact private key from startup output
2 parents c88fd1b + 1995a8e commit 9750bc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ function setupContext (appName, opts, cb) {
196196
ssbConfig.remote = `unix:${socketPath}:~noauth:${pubkey}`
197197
}
198198

199-
console.log(ssbConfig)
199+
const redactedConfig = JSON.parse(JSON.stringify(ssbConfig))
200+
redactedConfig.keys.private = null
201+
console.log(redactedConfig)
200202

201203
if (opts.server === false) {
202204
cb && cb()

0 commit comments

Comments
 (0)