mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Remove debug logging
Remove left over verbose debug logging.
This commit is contained in:
1 parent
5d8fa4e4ce
commit
9c8ae2bf06
2 files changed
+1
-11
No files matched your search
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user