Skip to content

Commit cef2aa2

Browse files
committed
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.
1 parent b5a9ef8 commit cef2aa2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/node/main.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,10 @@ export const runCodeServer = async (
121121
const app = await createApp(args)
122122
const protocol = args.cert ? "https" : "http"
123123
const serverAddress = ensureAddress(app.server, protocol)
124-
const sessionServerAddress = app.editorSessionManagerServer.address()
125124
const disposeRoutes = await register(app, args)
126125

127126
logger.info(`Using config file ${humanPath(os.homedir(), args.config)}`)
128127
logger.info(`${protocol.toUpperCase()} server listening on ${serverAddress.toString()}`)
129-
if (sessionServerAddress) {
130-
logger.info(`Session server listening on ${sessionServerAddress.toString()}`)
131-
}
132-
133128
if (args.auth === AuthType.Password) {
134129
logger.info(" - Authentication is enabled")
135130
if (args.usingEnvPassword) {
@@ -157,6 +152,11 @@ export const runCodeServer = async (
157152
logger.info(`Using proxy URI in PORTS tab: ${process.env.VSCODE_PROXY_URI}`)
158153
}
159154

155+
const sessionServerAddress = app.editorSessionManagerServer.address()
156+
if (sessionServerAddress) {
157+
logger.info(`Session server listening on ${sessionServerAddress.toString()}`)
158+
}
159+
160160
if (args.enable && args.enable.length > 0) {
161161
logger.info("Enabling the following experimental features:")
162162
args.enable.forEach((feature) => {

0 commit comments

Comments
 (0)