From 45ea82b0adcace484fb629ecb5690a8fe26387d2 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 10 Jul 2018 14:56:46 -0700 Subject: [PATCH] Moar logging --- gulpfile.babel.js | 2 +- scripts/build-algolia.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 60e8f0b19ef..1bad647a806 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -205,7 +205,7 @@ gulp.task('publish:search-index', (cb) => { }).on('close', code => { if (code === 0) { console.log('Publishing to algolia', process.env.ALGOLIA_INDEX_NAME); - atomicalgolia(process.env.ALGOLIA_INDEX_NAME, process.env.ALGOLIA_INDEX_FILE, (err, result) => { + atomicalgolia(process.env.ALGOLIA_INDEX_NAME, process.env.ALGOLIA_INDEX_FILE, {verbose: true}, (err, result) => { console.log(result); cb(err); }); diff --git a/scripts/build-algolia.js b/scripts/build-algolia.js index 39434be1fb7..5debce1487c 100755 --- a/scripts/build-algolia.js +++ b/scripts/build-algolia.js @@ -65,9 +65,12 @@ nodes.forEach(node => { // objectID is not quite unique yet so hash the entire object paragraphOut.objectID = md5(JSON.stringify(paragraphOut)); - if (paragraphOut.objectID === "d41d8cd98f00b204e9800998ecf8427e") { - console.log(paragraphOut) - console.log(JSON.stringify(paragraphOut)) + if (true || paragraphOut.objectID === "d41d8cd98f00b204e9800998ecf8427e") { + console.log('===================================='); + console.log('ID:',paragraphOut.objectID); + console.log('Paragraph:',paragraphOut) + console.log('JSON:',JSON.stringify(paragraphOut)) + console.log('===================================='); } nue.push(paragraphOut);