From 559a709a4901ccb1932d8d2845a199d91093153c Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Sat, 14 Dec 2019 12:05:00 -0500 Subject: log during update --- src/server/session_manager/session_manager.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/server/session_manager/session_manager.ts b/src/server/session_manager/session_manager.ts index b620c8502..37b32d621 100644 --- a/src/server/session_manager/session_manager.ts +++ b/src/server/session_manager/session_manager.ts @@ -33,12 +33,15 @@ registerCommand("exit", [], async () => { registerCommand("update", [], async () => { set(SessionState.UPDATING); + identifiedLog(cyan("Initializing server update from version control...")); + await endPrevious(); await new Promise(resolve => { exec("git pull && npm install", () => { resolve(); }); }); set(SessionState.MANUALLY_RESTARTING); + identifiedLog("Update complete. Initializing manual restart...\n"); }); registerCommand("state", [], () => identifiedLog(state)); -- cgit v1.2.3-70-g09d2