From d7eeccf645afa5f866cb8f4ee6127dfc60923a64 Mon Sep 17 00:00:00 2001 From: Alexander Scherer Date: Mon, 23 Nov 2020 14:27:08 +0100 Subject: [PATCH] refactor console.logs to logger --- src/roomPlanner/RoadPlanner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roomPlanner/RoadPlanner.ts b/src/roomPlanner/RoadPlanner.ts index d8dc5a6a4..7ab2104fc 100644 --- a/src/roomPlanner/RoadPlanner.ts +++ b/src/roomPlanner/RoadPlanner.ts @@ -398,14 +398,14 @@ export class RoadPlanner { /* Clean up leftover road coverage locations from remotes that aren't mined or old structures */ private cleanRoadCoverage() { const colonyDestinations = this.colony.destinations.map(dest => `${dest.pos.roomName}:${dest.pos.x}:${dest.pos.y}`); - console.log(`Colony ${this.colony.print} has destinations of ${JSON.stringify(colonyDestinations)}`); + log.debug(`Colony ${this.colony.print} has destinations of ${JSON.stringify(colonyDestinations)}`); for (const roadCoverageKey of Object.keys(this.memory.roadCoverages)) { // console.log(`Colony ${this.colony.name} Road coverage of ${roadCoverageKey}`); if (colonyDestinations.includes(roadCoverageKey)) { // console.log(`Colony has destination of ${roadCoverageKey}`); } else { - console.log(`Colony does not have destination of ${roadCoverageKey}, deleting.`); + log.warning(`Colony does not have destination of ${roadCoverageKey}, deleting.`); delete this.memory.roadCoverages[roadCoverageKey]; } }