From c023583d01fabb44c7aae72b5908ccfcf7fe0c01 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Sun, 5 Jan 2020 21:04:27 -0800 Subject: timestamp for repl --- src/server/Session/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/Session') diff --git a/src/server/Session/session.ts b/src/server/Session/session.ts index c9b49cc73..d07bd13a2 100644 --- a/src/server/Session/session.ts +++ b/src/server/Session/session.ts @@ -270,7 +270,7 @@ export namespace Session { }); // builds the repl that allows the following commands to be typed into stdin of the master thread - const repl = new Repl({ identifier: masterIdentifier }); + const repl = new Repl({ identifier: () => `${timestamp()} ${masterIdentifier}` }); repl.registerCommand("exit", [], () => execSync(onWindows ? "taskkill /f /im node.exe" : "killall -9 node")); repl.registerCommand("restart", [], restart); repl.registerCommand("set", [/[a-zA-Z]+/g, "port", /\d+/g, /true|false/g], args => { -- cgit v1.2.3-70-g09d2