Skip to content

Commit 9c084d2

Browse files
committed
reduce more logs
1 parent dc760a5 commit 9c084d2

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/components/App/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Helmet from 'react-helmet'
44
import Q from 'q'
55
import React, { Component } from 'react'
66

7+
FieldDBObject.todo = function () {};
78
FieldDBObject.warn = function () {};
89
FieldDBObject.confirm = function (message, optionalLocale) {
910
const deferred = Q.defer()

lib/corpus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var getCorpusMaskFromTitleAsUrl = function(userMask, titleAsUrl, next) {
114114
}
115115

116116
var bestMatch = matchingCorpusConnections[0];
117-
console.log(new Date() + " user's default gravatar " + userMask.gravatar);
117+
// console.log(new Date() + " user's default gravatar " + userMask.gravatar);
118118
userMask.corpora.debug(new Date() + " best match " + bestMatch.dbname);
119119
return getCorpusMask(bestMatch.dbname, next);
120120
};

lib/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ var getUserMask = function getUserMask(username, next) {
8383
userPrivate.userMask.corpora.push(corpusMask.connection);
8484
return corpusMask.connection;
8585
}).fail(function(err) {
86-
console.log("failed to fetchcorpus mask", err);
86+
console.log(new Date() + "failed to fetchcorpus mask", err);
8787
corpusMask.connection.websiteUrl = corpusMask.connection.websiteUrl || "/" + corpusConnection.dbname.replace("-", "/");
8888
userPrivate.userMask.corpora.push(corpusConnection);
8989
}));
9090
});
9191

9292
console.log(new Date() + " Waiting for " + promises.length + " to download details");
9393
Q.allSettled(promises).done(function(results) {
94-
console.log(new Date() + " TODO Consider saving in the user to avoid making requests again ", results.length);
94+
// console.log(new Date() + " TODO Consider saving in the user to avoid making requests again ", results.length);
9595
console.log(new Date() + " userPrivate.userMask.corpora.titles ", userPrivate.userMask.corpora.map(function(mask) {
9696
return mask.title;
9797
}));

0 commit comments

Comments
 (0)