Skip to content

Commit

Permalink
chore(dashmate): set tenderdash logging level to info
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 28, 2023
1 parent a1333bb commit ad18616
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dashmate/configs/defaults/getBaseConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function getBaseConfigFactory(homeDir) {
createEmptyBlocksInterval: '3m',
},
log: {
level: 'debug',
level: 'info',
format: 'plain',
path: null,
},
Expand Down
8 changes: 8 additions & 0 deletions packages/dashmate/configs/getConfigFileMigrationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ function getConfigFileMigrationsFactory(homeDir, defaultConfigs) {
fs.rmSync(homeDir.joinPath('ssl'), { recursive: true });
}

return configFile;
},
'1.0.0-dev.1': (configFile) => {
Object.entries(configFile.configs)
.forEach(([, options]) => {
options.platform.tenderdash.log.level = 'info';
});

return configFile;
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function setupLocalPresetTaskFactory(
ctx.minerInterval = await task.prompt({
type: 'input',
message: 'Enter the interval between core blocks',
initial: configFile.getConfig('base').options.core.miner.interval,
initial: configFile.getConfig('base').get('core.miner.interval'),
validate: (state) => {
if (state.match(/\d+(\.\d+)?(m|s)/)) {
return true;
Expand Down Expand Up @@ -239,6 +239,7 @@ function setupLocalPresetTaskFactory(
config.set('platform.drive.abci.logs.stdout.format', 'full');
}

// TODO: Shall we use trace?
config.set('platform.drive.tenderdash.log.level', 'debug');
}

Expand Down

0 comments on commit ad18616

Please sign in to comment.