diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-05 21:04:27 -0800 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-05 21:04:27 -0800 |
commit | c023583d01fabb44c7aae72b5908ccfcf7fe0c01 (patch) | |
tree | bf6c68fd87fdb66db1389ccd00ba3f228e0e7664 /src/server/Session/session.ts | |
parent | edf8dc1c042edd126f74e6bc3669bbc52d20d375 (diff) |
timestamp for repl
Diffstat (limited to 'src/server/Session/session.ts')
-rw-r--r-- | src/server/Session/session.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 => { |