set verbosity to 0 in process

This commit is contained in:
Jonathan Rainville 2018-05-22 09:11:38 -04:00
parent 3fcc36a7a1
commit 7e058e5016
3 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,8 @@ var Blockchain = function(options) {
vmdebug: this.blockchainConfig.vmdebug || false,
targetGasLimit: this.blockchainConfig.targetGasLimit || false,
light: this.blockchainConfig.light || false,
fast: this.blockchainConfig.fast || false
fast: this.blockchainConfig.fast || false,
verbosity: this.blockchainConfig.verbosity
};
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {

View File

@ -12,6 +12,7 @@ class BlockchainProcess extends ProcessWrapper {
i18n.setOrDetectLocale(options.locale);
this.blockchainConfig.verbosity = 0;
this.blockchain = BlockchainClient(this.blockchainConfig, this.client, this.env, this.isDev);
this.blockchain.run();
}

View File

@ -32,6 +32,10 @@ class GethCommands {
cmd += "--password " + config.account.password + " ";
}
if (Number.isInteger(config.verbosity) && config.verbosity >=0 && config.verbosity <= 5) {
cmd += "--verbosity " + config.verbosity + " ";
}
return cmd;
}