From 9c8ae2bf062bc8347c3101e57271b70d0168835d Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 11 Dec 2019 00:16:55 +0100 Subject: [PATCH] Remove debug logging Remove left over verbose debug logging. --- client.js | 7 +------ clusterctl.js | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/client.js b/client.js index 5a1ec85e..d533b5a2 100644 --- a/client.js +++ b/client.js @@ -82,14 +82,11 @@ class Instance extends link.Link{ clientPassword: null, } - console.log(`Creating ${instanceDir}`); + console.log(`Clusterio | Creating ${instanceDir}`); await fs.ensureDir(instanceDir); await fs.ensureDir(path.join(instanceDir, "script-output")); await fs.ensureDir(path.join(instanceDir, "saves")); - console.log("Clusterio | Created instance with settings:") - console.log(instanceConfig); - // save instance config await fs.outputFile(path.join(instanceDir, "config.json"), JSON.stringify(instanceConfig, null, 4)); @@ -131,8 +128,6 @@ class Instance extends link.Link{ try{ let logPath = this.path("factorio-current.log"); let stat = await fs.stat(logPath); - console.log(stat) - console.log(stat.isFile()) if(stat.isFile()){ let logFilename = `factorio-${Math.floor(Date.parse(stat.mtime)/1000)}.log`; await fs.rename(logPath, this.path(logFilename)); diff --git a/clusterctl.js b/clusterctl.js index 85d3a5c9..3f54e7f1 100644 --- a/clusterctl.js +++ b/clusterctl.js @@ -139,7 +139,6 @@ commands.push(new Command({ name: args.name, slave_id: slaveId, }); - console.log(response); }, })); @@ -155,7 +154,6 @@ commands.push(new Command({ let response = await link.messages.createSave.send(control, { instance_id: instanceId, }); - console.log(response); }, })); @@ -171,7 +169,6 @@ commands.push(new Command({ let response = await link.messages.startInstance.send(control, { instance_id: instanceId, }); - console.log(response); }, })); @@ -187,7 +184,6 @@ commands.push(new Command({ let response = await link.messages.stopInstance.send(control, { instance_id: instanceId, }); - console.log(response); }, })); @@ -201,7 +197,6 @@ commands.push(new Command({ let response = await link.messages.deleteInstance.send(control, { instance_id: await resolveInstance(control, args.instance), }); - console.log(response); }, }));