Skip to content

Commit 013a581

Browse files
committed
feat: change logging message when in non-silent mode
1 parent d0c5543 commit 013a581

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/cli.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,8 @@ async function start(restart = false): Promise<void> {
102102
}
103103

104104
if (!restart) {
105-
const nodeEnv = process.env.NODE_ENV || 'development';
106-
console.log(
107-
chalk.blue(
108-
'Proxy at ' +
109-
chalk.bold(`http://${program.host}:${program.port}`) +
110-
` (${nodeEnv} mode)`,
111-
),
112-
);
105+
const silentFlagText = program.silent ? '' : ' (failing responses when invalid)';
106+
console.log(chalk.blue(`Proxy at http://${chalk.bold(`${program.host}:${program.port}`)}${silentFlagText}`));
113107
console.log(chalk.blue('Target at ' + chalk.bold(program.target)));
114108
} else {
115109
console.log(chalk.hex('#eeeeee')('Restarted proxy server'));

0 commit comments

Comments
 (0)