Permalink
Browse files

Merge pull request #934 from ssbc/redact-private-key

Redact private key from startup output
  • Loading branch information...
christianbundy committed Feb 6, 2019
2 parents c88fd1b + 1995a8e commit 9750bc4d761e9243e144df7ecbc35c38e2b0a04e
Showing with 3 additions and 1 deletion.
  1. +3 −1 index.js
@@ -196,7 +196,9 @@ function setupContext (appName, opts, cb) {
ssbConfig.remote = `unix:${socketPath}:~noauth:${pubkey}`
}

console.log(ssbConfig)
const redactedConfig = JSON.parse(JSON.stringify(ssbConfig))
redactedConfig.keys.private = null
console.log(redactedConfig)

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

0 comments on commit 9750bc4

Please sign in to comment.