Skip to content

Commit

Permalink
fix: Ensure the logger is wired up before running liftoff (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 11, 2024
1 parent 4fc66f6 commit 36f05d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Expand Up @@ -66,6 +66,9 @@ var parser = yargs

var opts = parser.parse();

// Set up event listeners for logging temporarily.
toConsole(log, opts);

cli.on('preload:before', function(name) {
log.info('Preloading external module:', chalk.magenta(name));
});
Expand Down
2 changes: 1 addition & 1 deletion test/config-description.js
Expand Up @@ -48,7 +48,7 @@ describe('config: description', function() {
expect(err).toBeNull();
expect(stderr).toEqual('');
var expected = fs.readFileSync(path.join(expectedDir, 'output2.txt'), 'utf-8');
expect(sliceLines(stdout, 1)).toEqual(expected);
expect(sliceLines(stdout, 2)).toEqual(expected);
done(err);
}
});
Expand Down

0 comments on commit 36f05d5

Please sign in to comment.