Skip to content

Commit a3b10ef

Browse files
committed
logging on debug level
1 parent a6688d0 commit a3b10ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/reports/api/reports.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var reportsInstance = {},
1212
countlyCommon = require('../../../api/lib/countly.common.js'),
1313
localize = require('../../../api/utils/localization.js'),
1414
common = require('../../../api/utils/common.js'),
15+
log = require('../../../api/utils/log')('reports:reports'),
1516
versionInfo = require('../../../frontend/express/version.info');
1617

1718
versionInfo.page = (!versionInfo.title) ? "https://count.ly" : null;
@@ -87,7 +88,7 @@ var metrics = {
8788

8889
db.collection('members').findOne({global_admin: true}, function(err2, globalAdmin) {
8990
if (!err2 && globalAdmin) {
90-
console.log("Report user not found. Updating it to the global admin - ", JSON.stringify(globalAdmin));
91+
log.d("Report user not found. Updating it to the global admin.");
9192
report.user = globalAdmin._id;
9293
return cb(null, globalAdmin);
9394
}

0 commit comments

Comments
 (0)