Archived
1
0

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.
This commit is contained in:
Asher 2023-12-06 13:19:17 -09:00
parent 1fac50d6f6
commit 26a3437849
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export class Heart {
return return
} }
logger.trace("heartbeat") logger.debug("heartbeat")
this.lastHeartbeat = Date.now() this.lastHeartbeat = Date.now()
if (typeof this.heartbeatTimer !== "undefined") { if (typeof this.heartbeatTimer !== "undefined") {
clearTimeout(this.heartbeatTimer) clearTimeout(this.heartbeatTimer)

View File

@ -109,7 +109,7 @@ export const runCodeServer = async (
logger.info(`code-server ${version} ${commit}`) logger.info(`code-server ${version} ${commit}`)
logger.info(`Using user-data-dir ${args["user-data-dir"]}`) 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"]) { if (args.auth === AuthType.Password && !args.password && !args["hashed-password"]) {
throw new Error( throw new Error(