diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fe747a2c..db2967d2e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -50,6 +50,6 @@ "conventionalCommits.showNewVersionNotes": false, "conventionalCommits.promptBody": false, "conventionalCommits.promptFooter": false, - "conventionalCommits.promptScopes": false, - "conventionalCommits.scopes": [] + "conventionalCommits.promptScopes": true, + "conventionalCommits.scopes": ["reg"] } diff --git a/core/util/logger.ts b/core/util/logger.ts index faaa05a43..ebd21199c 100644 --- a/core/util/logger.ts +++ b/core/util/logger.ts @@ -7,7 +7,9 @@ export const logger = winston.createLogger({ format: winston.format.json(), transports: [ // Write all logs with importance level of `info` or higher to `info.log` - new winston.transports.File({ filename: "e2e.log", level: "info" }), + ...(process.env.NODE_ENV === "test" + ? [new winston.transports.File({ filename: "e2e.log", level: "info" })] + : []), // Normal console.log behavior new winston.transports.Console(), ],