summary refs log tree commit diff
path: root/bundle/src
diff options
context:
space:
mode:
authorFeatyre <88265031+Featyre@users.noreply.github.com>2021-11-22 21:44:26 +0800
committerGitHub <noreply@github.com>2021-11-22 21:44:26 +0800
commit17fed6a4b60335ff7b4506ebe7880606d99a3568 (patch)
tree2ac2f9338e01c76fb810d552b6d78507d597ce45 /bundle/src
parentUpdate Identify.ts (diff)
parentMerge pull request #491 from TheArcaneBrony/master (diff)
downloadserver-17fed6a4b60335ff7b4506ebe7880606d99a3568.tar.xz
Merge branch 'fosscord:master' into master
Diffstat (limited to 'bundle/src')
-rw-r--r--bundle/src/start.ts7
-rw-r--r--bundle/src/stats.ts2
2 files changed, 5 insertions, 4 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts

index 4445fde6..8725ba61 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); } @@ -80,7 +81,7 @@ Current commit: ${ 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(