From cef2aa22dcf29485d408942589249bd53cb33b40 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 21 Jun 2023 10:55:06 -0800 Subject: [PATCH] Move session server log after HTTP server logs The indented logs technically apply to the HTTP server so move the session server log afterward to avoid making them look like they apply to the session server. --- src/node/main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node/main.ts b/src/node/main.ts index f4733b109..73b982e12 100644 --- a/src/node/main.ts +++ b/src/node/main.ts @@ -121,15 +121,10 @@ export const runCodeServer = async ( const app = await createApp(args) const protocol = args.cert ? "https" : "http" const serverAddress = ensureAddress(app.server, protocol) - const sessionServerAddress = app.editorSessionManagerServer.address() const disposeRoutes = await register(app, args) logger.info(`Using config file ${humanPath(os.homedir(), args.config)}`) logger.info(`${protocol.toUpperCase()} server listening on ${serverAddress.toString()}`) - if (sessionServerAddress) { - logger.info(`Session server listening on ${sessionServerAddress.toString()}`) - } - if (args.auth === AuthType.Password) { logger.info(" - Authentication is enabled") if (args.usingEnvPassword) { @@ -157,6 +152,11 @@ export const runCodeServer = async ( logger.info(`Using proxy URI in PORTS tab: ${process.env.VSCODE_PROXY_URI}`) } + const sessionServerAddress = app.editorSessionManagerServer.address() + if (sessionServerAddress) { + logger.info(`Session server listening on ${sessionServerAddress.toString()}`) + } + if (args.enable && args.enable.length > 0) { logger.info("Enabling the following experimental features:") args.enable.forEach((feature) => {