From e004bb5d3c380b5370575cc381a2d33418e79c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Fri, 28 Feb 2020 09:36:00 +0100 Subject: [PATCH] fix: don't log watch mode not supported to stdout --- packages/cli/src/commands/server/watchMode.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/commands/server/watchMode.ts b/packages/cli/src/commands/server/watchMode.ts index def7c8158..ea8f91e2a 100644 --- a/packages/cli/src/commands/server/watchMode.ts +++ b/packages/cli/src/commands/server/watchMode.ts @@ -9,16 +9,16 @@ function printWatchModeInstructions() { } function enableWatchMode(messageSocket: any) { - readline.emitKeypressEvents(process.stdin); - // We need to set this to true to catch key presses individually. // As a result we have to implement our own method for exiting // and other commands (e.g. ctrl+c & ctrl+z) if (!process.stdin.setRawMode) { - logger.log('Watch mode is not supported in this environment'); + logger.debug('Watch mode is not supported in this environment'); return; } + readline.emitKeypressEvents(process.stdin); + process.stdin.setRawMode(true); // We have no way of knowing when the dependency graph is done loading