separate debug files.

This commit is contained in:
Christopher Jeffrey 2016-05-23 03:33:36 -07:00
parent 77e28d28f4
commit 65278a3296
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -244,7 +244,7 @@ Environment.prototype.set = function set(options) {
options.workerTimeout = +process.env.BCOIN_WORKER_TIMEOUT;
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.networkType = options.network;