This commit is contained in:
Aleksandr Statciuk 2022-01-09 20:14:41 +03:00
parent cea7fc2cbb
commit cfdf85bd01
7 changed files with 199 additions and 161 deletions

View file

@ -8,13 +8,13 @@ const options = program
.parse(process.argv)
.opts()
const LOGS_PATH = process.env.LOGS_PATH || 'scripts/logs'
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs'
async function main() {
logger.info('Starting...')
timer.start()
const clusterLog = `${LOGS_PATH}/load-cluster/cluster_${options.clusterId}.log`
const clusterLog = `${LOGS_DIR}/load-cluster/cluster_${options.clusterId}.log`
logger.info(`Loading cluster: ${options.clusterId}`)
logger.info(`Creating '${clusterLog}'...`)
await file.create(clusterLog)