Skip to content

Commit e8e0111

Browse files
committed
Merge branch 'reduce_logs' of https://github.com/cesine/FieldDBWebServer into reduce_logs
2 parents 7cc4e07 + 54b1346 commit e8e0111

9 files changed

Lines changed: 338 additions & 9 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ audio_stimuli
1919
.classpath
2020
proguard.cfg
2121

22-
public/components
2322
node_modules
2423
gen
2524
dist

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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ var getCorpusMask = function(dbname, next) {
4141
corpusMask.team.corpus = corpusMask;
4242
corpusMask.connection = corpusMask.connection || {};
4343
corpusMask.team.fetch(config.corpus.url + "/" + validateIdentifier.identifier).then(function() {
44-
console.log(new Date() + " owners's gravatar in this database " + corpusMask.team.gravatar, corpusMask.startYear);
45-
console.log(new Date() + " corpus connection's gravatar in this database " + corpusMask.connection.gravatar);
46-
console.log(new Date() + " TODO consider saving corpus.json with the team inside.");
44+
// console.log(new Date() + " owners's gravatar in this database " + corpusMask.team.gravatar, corpusMask.startYear);
45+
// console.log(new Date() + " corpus connection's gravatar in this database " + corpusMask.connection.gravatar);
46+
// console.log(new Date() + " TODO consider saving corpus.json with the team inside.");
4747
deferred.resolve(corpusMask);
4848
}, function(err) {
49-
console.log("error fetching corpus team", err);
49+
console.log(new Date() + "error fetching corpus team", err);
5050
deferred.resolve(corpusMask);
5151
}).fail(function(err) {
52-
console.log("error fetching corpus team", err);
52+
console.log(new Date() + "error fetching corpus team", err);
5353
deferred.resolve(corpusMask);
5454
});
5555
}, next).fail(next);
@@ -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
}));
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"name": "fielddb",
3+
"version": "4.4.22",
4+
"homepage": "http://fielddb.github.io/FieldDB/",
5+
"bugs": {
6+
"url": "https://github.com/FieldDB/FieldDB/issues"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git://github.com/FieldDB/FieldDB.git"
11+
},
12+
"authors": [
13+
"cesine <cesine@yahoo.com>",
14+
"trisapeace <trisapeace@gmail.com>",
15+
"hisakonog <hisakonog@gmail.com>",
16+
"Emmy Cathcart <maryellencathcart@gmail.com>",
17+
"Tobin Skinner <tobin.skinner@gmail.com>",
18+
"Yuliya Manyakina <yulia.manyakina@gmail.com>",
19+
"Elise <elise.mcclay@gmail.com>",
20+
"Josh Horner <josh.horner@gmail.com>",
21+
"gretchenmcc <gretchen.mcculloch@gmail.com>",
22+
"jrwdunham <jrwdunham@gmail.com>",
23+
"ghazan <gay.hazan@gmail.com>",
24+
"Fieldlinguist <info@fieldlinguist.com>",
25+
"zazoo <kimdan.ng@gmail.com>",
26+
"louisa-bielig <louisa.bielig@gmail.com>",
27+
"lingllama <lingllama@lingsync.org>",
28+
"geekrax <rakshit@thetechtime.com>",
29+
"Yogurt1206 <sunx4@miamioh.edu>",
30+
"Pablo Duboue <pablo.duboue@gmail.com>",
31+
"Oriana <oriana.kilbourn-ceron@mail.mcgill.ca>"
32+
],
33+
"license": "Apache-2.0",
34+
"ignore": [
35+
"Gruntfile.js",
36+
"angular_client",
37+
"api",
38+
"backbone_client",
39+
"bower.json",
40+
"bower_components",
41+
"build",
42+
"map_reduce_activities",
43+
"map_reduce_cleaning",
44+
"map_reduce_unused",
45+
"map_reduce_data",
46+
"map_reduce_export",
47+
"map_reduce_learnx",
48+
"map_reduce_lexicon",
49+
"couchapp_minified",
50+
"docs",
51+
"install_linux_download_and_set_up_fielddb_servers_for_new_developers_quick_start.sh",
52+
"install_mac_download_and_set_up_fielddb_servers_for_new_developers_quick_start.sh",
53+
"manifest.json",
54+
"node_modules",
55+
"package.json",
56+
"raw",
57+
"release",
58+
"sample_data",
59+
"scripts",
60+
"test-reports",
61+
"**/.*",
62+
"node_modules",
63+
"bower_components",
64+
"test",
65+
"tests"
66+
],
67+
"dependencies": {},
68+
"main": "fielddb.js",
69+
"_release": "4.4.22",
70+
"_resolution": {
71+
"type": "version",
72+
"tag": "v4.4.22",
73+
"commit": "90a11b30f345c1375d4d4bbaefaf52dad1b3f510"
74+
},
75+
"_source": "https://github.com/OpenSourceFieldlinguistics/bower-fielddb.git",
76+
"_target": "^4.4.22",
77+
"_originalSource": "fielddb"
78+
}

0 commit comments

Comments
 (0)