From cb840bc31210d3009dad1bc0b3e1b81efc5967ca Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Mon, 20 Jul 2020 19:44:48 +0300 Subject: [PATCH] Improve logs --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index a9116dd..2b64a2c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,7 @@ export const loop = ErrorMapper.wrapLoop(() => { const firstSpawn = _.first(Object.values(Game.spawns)); const name = uniqId(ROLE_HARVESTER); const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_HARVESTER } as CreepMemory }); - console.log('Err', err); + console.log('Harvester Err', err); } const UPGRADER_CREEP_COUNT = 2; @@ -49,7 +49,7 @@ export const loop = ErrorMapper.wrapLoop(() => { const firstSpawn = _.first(Object.values(Game.spawns)); const name = uniqId(ROLE_UPGRADER); const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_UPGRADER } as CreepMemory }); - console.log('Err', err); + console.log('Upgrader Err', err); } const BUILDER_CREEP_COUNT = 2; @@ -58,7 +58,7 @@ export const loop = ErrorMapper.wrapLoop(() => { const firstSpawn = _.first(Object.values(Game.spawns)); const name = uniqId(ROLE_BUILDER); const err = firstSpawn.spawnCreep([WORK, CARRY, MOVE], name, { memory: { role: ROLE_BUILDER } as CreepMemory }); - console.log('Err', err); + console.log('Builder Err', err); } // Process current creeps