From c8431d06c79baf15ad9722a4fb6379d6dd80ffe1 Mon Sep 17 00:00:00 2001 From: ryanweiler92 Date: Thu, 3 Aug 2023 08:06:36 -0400 Subject: [PATCH] add console warnings --- tasks/build-options/fetchPreviewSnapshots.js | 1 + tasks/build-options/getCapabilities.js | 1 + tasks/build-options/getVisMetadata.js | 3 ++- .../kiosk/tile-measurement/utils/image-api-request.js | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/build-options/fetchPreviewSnapshots.js b/tasks/build-options/fetchPreviewSnapshots.js index b2305b320e..9d466ce03b 100644 --- a/tasks/build-options/fetchPreviewSnapshots.js +++ b/tasks/build-options/fetchPreviewSnapshots.js @@ -3,6 +3,7 @@ const axios = require('axios') const fs = require('fs') const path = require('path') const yargs = require('yargs') +const console = require('console') const prog = path.basename(__filename) diff --git a/tasks/build-options/getCapabilities.js b/tasks/build-options/getCapabilities.js index 29f687a070..8d233aaf18 100644 --- a/tasks/build-options/getCapabilities.js +++ b/tasks/build-options/getCapabilities.js @@ -84,6 +84,7 @@ async function getCapabilities () { // convert to superagent and use promises async function fetchConfigs (inputFile, outputFile) { + console.warn('FETCHING CONFIGS FROM GETCAPABILITIES.JS') const writer = await fs.createWriteStream(outputFile) return axios({ method: 'get', diff --git a/tasks/build-options/getVisMetadata.js b/tasks/build-options/getVisMetadata.js index 22e19d48a8..3662acf902 100644 --- a/tasks/build-options/getVisMetadata.js +++ b/tasks/build-options/getVisMetadata.js @@ -122,7 +122,8 @@ async function getDAAC (metadata) { } async function getMetadata (layerId, baseUrl, count) { - if (count) console.warn(`retry #${count} for ${layerId}`) + // if (count) console.warn(`retry #${count} for ${layerId}`) + console.warn('FETCHING METADATA FROM GETVISMETADATA.JS') return axios({ method: 'get', url: `${baseUrl}${layerId}.json`, diff --git a/web/js/mapUI/components/kiosk/tile-measurement/utils/image-api-request.js b/web/js/mapUI/components/kiosk/tile-measurement/utils/image-api-request.js index 8904d2f72d..6f2994ff7f 100644 --- a/web/js/mapUI/components/kiosk/tile-measurement/utils/image-api-request.js +++ b/web/js/mapUI/components/kiosk/tile-measurement/utils/image-api-request.js @@ -29,6 +29,7 @@ export default async function fetchWMSImage(layer, date, extent, testMode) { }; try { + console.warn('FETCHING IMAGE FROM IMAGE-API-REQUEST.JS') const response = await axios.get(baseUrl, { params, responseType: 'arraybuffer' }); // Convert the response data to a Blob which can be used as image src