Skip to content

Commit

Permalink
add console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanweiler92 committed Aug 3, 2023
1 parent d09c7ae commit c8431d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/build-options/fetchPreviewSnapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions tasks/build-options/getCapabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion tasks/build-options/getVisMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8431d0

Please sign in to comment.