summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Harley2018-06-26 18:55:23 +0100
committerTom Harley2018-06-26 18:55:23 +0100
commit9fef097b2b080a90e89625a95a50d5ab16d6c75a (patch)
tree5a1e55fe1b84542369fbd84af086a8a38a657867 /src
parentWow I am an eejit (diff)
downloadscreeps-ai-9fef097b2b080a90e89625a95a50d5ab16d6c75a.tar.gz
screeps-ai-9fef097b2b080a90e89625a95a50d5ab16d6c75a.zip

Edit logging to use error logger

Diffstat (limited to 'src')
-rw-r--r--src/main.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index 1f01098..398ce5c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -17,8 +17,7 @@ module.exports.loop = () => {
if (job) {
job.run(creep);
} else {
- console.log(creep.name + " is missing instructions for job "
- + creep.memory.job);
+ error.log(`${creep.name} cannot find ${creep.memory.job} instructions`);
}
}
for (const name in Game.spawns) {