Skip to content

Commit 832c4f1

Browse files
committed
console logs added
1 parent 1382d3e commit 832c4f1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

chronos_npm_package/controllers/mongo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ mongo.health = async ({ microservice, interval, mode }) => {
115115
setInterval(() => {
116116
collectHealthData()
117117
.then(async healthMetrics => {
118+
console.log("HEALTH METRICS",healthMetrics)
118119
if (l !== healthMetrics.length) {
119120
l = await mongo.addMetrics(healthMetrics, mode, currentMetricNames);
120121
}
@@ -271,7 +272,9 @@ mongo.setQueryOnInterval = async config => {
271272
};
272273

273274
mongo.getSavedMetricsLength = async (mode, currentMetricNames) => {
275+
console.log('mongo.getSavedMetricsLength',{mode,currentMetricNames})
274276
let currentMetrics = await MetricsModel.find({ mode: mode });
277+
console.log("CURRENT METRICS",currentMetrics)
275278
if (currentMetrics.length > 0) {
276279
currentMetrics.forEach(el => {
277280
const { metric, selected } = el;

0 commit comments

Comments
 (0)