mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
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:
1 parent
3d186a24ff
commit
351fcba4f8
2 files changed
+12
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user