We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c5543 commit 013a581Copy full SHA for 013a581
1 file changed
src/cli.ts
@@ -102,14 +102,8 @@ async function start(restart = false): Promise<void> {
102
}
103
104
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
- );
+ const silentFlagText = program.silent ? '' : ' (failing responses when invalid)';
+ console.log(chalk.blue(`Proxy at http://${chalk.bold(`${program.host}:${program.port}`)}${silentFlagText}`));
113
console.log(chalk.blue('Target at ' + chalk.bold(program.target)));
114
} else {
115
console.log(chalk.hex('#eeeeee')('Restarted proxy server'));
0 commit comments