From ac1d7fbbaf2f3e97f0988d9daa47576b7883b555 Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Wed, 10 Nov 2021 19:44:11 +0300 Subject: API versions 6 & 7 with minor logging additions --- bundle/src/start.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bundle/src') diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 4445fde6..f683d3e3 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -38,11 +38,12 @@ if (cluster.isMaster) { })` )} -Current commit: ${ +Commit Hash: ${ commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)" } +Cores: ${cyan(cores)} `) ); @@ -65,7 +66,7 @@ Current commit: ${ let delay = process.env.DATABASE?.includes("://") ? 0 : i * 1000; setTimeout(() => { cluster.fork(); - console.log(`[Process] worker ${i} started.`); + console.log(`[Process] worker ${cyan(i)} started.`); }, delay); } -- cgit 1.5.1 From 5e1d4ce4d7cc2e55f74b49fd98b7e6482d214251 Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Thu, 11 Nov 2021 11:31:03 +0300 Subject: minor capitulation --- bundle/src/start.ts | 2 +- bundle/src/stats.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle/src') diff --git a/bundle/src/start.ts b/bundle/src/start.ts index f683d3e3..8725ba61 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -81,7 +81,7 @@ Cores: ${cyan(cores)} cluster.on("exit", (worker: any, code: any, signal: any) => { console.log( `[Worker] ${red( - `died with pid: ${worker.process.pid} , restarting ...` + `died with PID: ${worker.process.pid} , restarting ...` )}` ); cluster.fork(); diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts index 9bd9131e..8d87f9d9 100644 --- a/bundle/src/stats.ts +++ b/bundle/src/stats.ts @@ -6,7 +6,7 @@ export function initStats() { console.log(`[Path] running in ${__dirname}`); console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`); console.log(`[System] ${os.platform()} ${os.arch()}`); - console.log(`[Process] running with pid: ${process.pid}`); + console.log(`[Process] running with PID: ${process.pid}`); if (process.getuid && process.getuid() === 0) { console.warn( red( -- cgit 1.5.1