Skip to content

Commit

Permalink
improvement(cli): move error.log to .garden/error.log
Browse files Browse the repository at this point in the history
This avoids contaminating people's project root directory.
  • Loading branch information
edvald committed Jul 15, 2021
1 parent cb68b2a commit e13365e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/cli/cli.ts
Expand Up @@ -102,7 +102,7 @@ ${renderCommands(commands)}
}
const logConfigs: FileWriterConfig[] = [
{
logFilePath: join(root, ERROR_LOG_FILENAME),
logFilePath: join(gardenDirPath, ERROR_LOG_FILENAME),
truncatePrevious: true,
level: LogLevel.error,
},
Expand Down Expand Up @@ -472,7 +472,7 @@ ${renderCommands(commands)}
}

if (logger.getWriters().find((w) => w instanceof FileWriter)) {
logger.info(`\nSee ${ERROR_LOG_FILENAME} for detailed error message`)
logger.info(`\nSee .garden/${ERROR_LOG_FILENAME} for detailed error message`)
await waitForOutputFlush()
}

Expand Down

0 comments on commit e13365e

Please sign in to comment.