mirror of https://github.com/nodejs/node.git
watch: preserve output when gracefully restarted
PR-URL: https://github.com/nodejs/node/pull/54323 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
28ffa4b751
commit
89a2f565b7
|
@ -113,7 +113,10 @@ function reportGracefulTermination() {
|
|||
return () => {
|
||||
clearTimeout(graceTimer);
|
||||
if (reported) {
|
||||
process.stdout.write(`${clear}${green}Gracefully restarted ${kCommandStr}${white}\n`);
|
||||
if (!kPreserveOutput) {
|
||||
process.stdout.write(clear);
|
||||
}
|
||||
process.stdout.write(`${green}Gracefully restarted ${kCommandStr}${white}\n`);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue