diff --git a/helpers/format.js b/helpers/format.js index 2d5e981b5..d48309606 100644 --- a/helpers/format.js +++ b/helpers/format.js @@ -20,7 +20,10 @@ async function main() { } for(let country of countries) { - console.log(`Clear cache...`) + + if(debug) { + console.log(`Clear cache...`) + } util.clearCache() console.log(`Parsing '${country.url}'...`) diff --git a/helpers/generate.js b/helpers/generate.js index 6fdca747c..82721ddfb 100644 --- a/helpers/generate.js +++ b/helpers/generate.js @@ -24,7 +24,10 @@ function main() { } for(let country of countries) { - console.log(`Clear cache...`) + + if(debug) { + console.log(`Clear cache...`) + } util.clearCache() console.log(`Parsing '${country.url}'...`)