Print version on startup

Help determining what is running by printing the version that is running
on master and slave startup.
This commit is contained in:
Hornwitser committed 2023-02-15 20:31:02 +01:00
1 parent 3d186a24ff
commit 351fcba4f8
2 files changed
+12 -6

No files matched your search

+5 -1
View File
@@ -129,6 +129,11 @@ async function startSlave() {
}));
}
let command = args._[0];
if (command === "run") {
logger.info(`Starting Clusterio slave ${version}`);
}
// add better stack traces on promise rejection
process.on("unhandledRejection", err => logger.error(`Unhandled rejection:\n${err.stack}`));
@@ -143,7 +148,6 @@ async function startSlave() {
}
// If the command is plugin management we don't try to load plugins
let command = args._[0];
if (command === "plugin") {
await libSharedCommands.handlePluginCommand(args, pluginList, args.pluginList);
return;