Content-Length: 209174 | pFad | http://github.com/tpoisseau/node/commit/be366dd90eb79dd6ef08bac6ae24a1bc55f7e8d0

3F watch: preserve output when gracefully restarted · tpoisseau/node@be366dd · GitHub
Skip to content

Commit

Permalink
watch: preserve output when gracefully restarted
Browse files Browse the repository at this point in the history
PR-URL: nodejs#54323
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
theoludwig authored and tpoisseau committed Nov 21, 2024
1 parent 9e7f2b3 commit be366dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/internal/main/watch_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
};
}
Expand Down

0 comments on commit be366dd

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tpoisseau/node/commit/be366dd90eb79dd6ef08bac6ae24a1bc55f7e8d0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy