From 26a34378490cce8fe9a26067495712bc8002ba8f Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 6 Dec 2023 13:19:17 -0900 Subject: [PATCH] Use debug instead of trace Trace outputs stack traces which is entirely unnecessary for these two log entries and makes the logs noisier than they need to be. --- src/node/heart.ts | 2 +- src/node/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/heart.ts b/src/node/heart.ts index 5afda363d..aac917257 100644 --- a/src/node/heart.ts +++ b/src/node/heart.ts @@ -31,7 +31,7 @@ export class Heart { return } - logger.trace("heartbeat") + logger.debug("heartbeat") this.lastHeartbeat = Date.now() if (typeof this.heartbeatTimer !== "undefined") { clearTimeout(this.heartbeatTimer) diff --git a/src/node/main.ts b/src/node/main.ts index f61ca2bb4..c93dd4f6c 100644 --- a/src/node/main.ts +++ b/src/node/main.ts @@ -109,7 +109,7 @@ export const runCodeServer = async ( logger.info(`code-server ${version} ${commit}`) logger.info(`Using user-data-dir ${args["user-data-dir"]}`) - logger.trace(`Using extensions-dir ${args["extensions-dir"]}`) + logger.debug(`Using extensions-dir ${args["extensions-dir"]}`) if (args.auth === AuthType.Password && !args.password && !args["hashed-password"]) { throw new Error(