From fd1bc48b55fbe8ba87720d844ea405dfc7514e2b Mon Sep 17 00:00:00 2001 From: "Joseph P. White" Date: Wed, 25 Jan 2017 15:12:11 -0500 Subject: [PATCH] Added extra debug messages that list database and collection names. This aids the process of debugging configuration file problems. --- etl/js/lib/dataset_processor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etl/js/lib/dataset_processor.js b/etl/js/lib/dataset_processor.js index 45fc882b64..adc9ae4522 100644 --- a/etl/js/lib/dataset_processor.js +++ b/etl/js/lib/dataset_processor.js @@ -249,6 +249,9 @@ DatasetProcessor.prototype.process = function (totalCores, coreIndex) { self.onEndProcess(); return; } + + self.emit('message', self.dataset.name + ': connected to database \'' + db.databaseName + '\''); + //look for jobs that haven't been processed yet, //or processed by an older version of this script var query; @@ -281,7 +284,7 @@ DatasetProcessor.prototype.process = function (totalCores, coreIndex) { self.onEndProcess(); } - self.emit('message', self.dataset.name + ': ' + " query " + util.inspect(query)); + self.emit('message', self.dataset.name + ': query \'' + self.collection.collectionName + '\' ' + util.inspect(query)); self.stream = self.collection .find(query)