Skip to content

Commit

Permalink
fix: make proc silent by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 10, 2019
1 parent 2f61eef commit a62bd97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/factory-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class FactoryInProc {

options.type = this.options.type
options.exec = options.exec || this.options.exec
options.silent = options.silent || true

if (typeof options.exec !== 'function') {
throw new Error(`'type' proc requires 'exec' to be a coderef`)
Expand Down
3 changes: 2 additions & 1 deletion src/ipfsd-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class InProc extends EventEmitter {
EXPERIMENTAL: this.opts.EXPERIMENTAL,
libp2p: this.opts.libp2p,
config: this.opts.config,
relay: this.opts.relay
relay: this.opts.relay,
silent: this.opts.silent
})

// TODO: should this be wrapped in a process.nextTick(), for context:
Expand Down

0 comments on commit a62bd97

Please sign in to comment.