Skip to content

Commit cf6dce2

Browse files
author
John McCambridge
committed
Use less redundant logger messages
1 parent cc7afc6 commit cf6dce2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/server/src/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ const bold = (text: string | number): string | number => {
177177
newestVersion = currentVersion;
178178
}
179179
}
180-
if (newestVersion === process.env.VERSION){
180+
if (newestVersion === process.env.VERSION) {
181181
logger.info(`You are using the latest version: ${newestVersion}`);
182+
} else {
183+
logger.info(`New version (\u001B[1m${newestVersion}) available at https://github.com/codercom/code-server/releases`);
182184
}
183-
logger.info(`Latest version is \u001B[1m${newestVersion}`);
184185
logger.info(`\u001B[1mcode-server ${process.env.VERSION ? `v${process.env.VERSION}` : "development"}`);
185186

186187
if (options.dataDir) {

0 commit comments

Comments
 (0)