separate debug files.
This commit is contained in:
parent
77e28d28f4
commit
65278a3296
@ -244,7 +244,7 @@ Environment.prototype.set = function set(options) {
|
|||||||
options.workerTimeout = +process.env.BCOIN_WORKER_TIMEOUT;
|
options.workerTimeout = +process.env.BCOIN_WORKER_TIMEOUT;
|
||||||
|
|
||||||
if (options.debugFile && typeof options.debugFile !== 'string')
|
if (options.debugFile && typeof options.debugFile !== 'string')
|
||||||
options.debugFile = options.prefix + '/debug.log'
|
options.debugFile = options.prefix + '/debug-' + options.network + '.log';
|
||||||
|
|
||||||
this.prefix = options.prefix;
|
this.prefix = options.prefix;
|
||||||
this.networkType = options.network;
|
this.networkType = options.network;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user