Skip to content

Commit

Permalink
Fix for review.
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv committed Nov 29, 2023
1 parent 78449de commit ab662d1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/lib/lightnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ async function promptForDockerContainerProcess(processToLogFileMapping) {
const response = await enquirer.prompt({
type: 'select',
name: 'selectedProcess',
[...processToLogFileMapping.keys()],
choices: [...processToLogFileMapping.keys()],
message: () => {
return chalk.reset(
'Please select the Docker container process to follow the logs of'
Expand Down Expand Up @@ -611,14 +611,12 @@ function createLogsDirectory() {
}

function getLogFilePaths(mode) {
return [...lightnetDockerProcessToLogFileMapping.values()].map(
(value) => {
const logFilePaths = value.split(',');
return mode === 'single-node' || logFilePaths.length === 1
? logFilePaths[0]
: logFilePaths[1];
}
);
return [...lightnetDockerProcessToLogFileMapping.values()].map((value) => {
const logFilePaths = value.split(',');
return mode === 'single-node' || logFilePaths.length === 1
? logFilePaths[0]
: logFilePaths[1];
});
}

async function processSingleNodeLogs(logFilePaths, logsDir) {
Expand Down

0 comments on commit ab662d1

Please # to comment.