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.
This commit is contained in:
parent
b5a9ef80e7
commit
cef2aa22dc
@ -121,15 +121,10 @@ export const runCodeServer = async (
|
|||||||
const app = await createApp(args)
|
const app = await createApp(args)
|
||||||
const protocol = args.cert ? "https" : "http"
|
const protocol = args.cert ? "https" : "http"
|
||||||
const serverAddress = ensureAddress(app.server, protocol)
|
const serverAddress = ensureAddress(app.server, protocol)
|
||||||
const sessionServerAddress = app.editorSessionManagerServer.address()
|
|
||||||
const disposeRoutes = await register(app, args)
|
const disposeRoutes = await register(app, args)
|
||||||
|
|
||||||
logger.info(`Using config file ${humanPath(os.homedir(), args.config)}`)
|
logger.info(`Using config file ${humanPath(os.homedir(), args.config)}`)
|
||||||
logger.info(`${protocol.toUpperCase()} server listening on ${serverAddress.toString()}`)
|
logger.info(`${protocol.toUpperCase()} server listening on ${serverAddress.toString()}`)
|
||||||
if (sessionServerAddress) {
|
|
||||||
logger.info(`Session server listening on ${sessionServerAddress.toString()}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args.auth === AuthType.Password) {
|
if (args.auth === AuthType.Password) {
|
||||||
logger.info(" - Authentication is enabled")
|
logger.info(" - Authentication is enabled")
|
||||||
if (args.usingEnvPassword) {
|
if (args.usingEnvPassword) {
|
||||||
@ -157,6 +152,11 @@ export const runCodeServer = async (
|
|||||||
logger.info(`Using proxy URI in PORTS tab: ${process.env.VSCODE_PROXY_URI}`)
|
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) {
|
if (args.enable && args.enable.length > 0) {
|
||||||
logger.info("Enabling the following experimental features:")
|
logger.info("Enabling the following experimental features:")
|
||||||
args.enable.forEach((feature) => {
|
args.enable.forEach((feature) => {
|
||||||
|
Reference in New Issue
Block a user