Skip to content

Commit feb833a

Browse files
committed
reduce logging
1 parent 455a276 commit feb833a

5 files changed

Lines changed: 6 additions & 5 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.warn = function () {};
78
FieldDBObject.confirm = function (message, optionalLocale) {
89
const deferred = Q.defer()
910
console.warn('Not confirming: ', message)

app/components/CorpusMask/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class CorpusMaskContainer extends Component {
6868

6969
const descriptionFormatted = marked(corpusMask.get('description') || '')
7070
const termsOfUse = corpusMask.get('termsOfUse') || ''
71-
const termsOfUseFormatted = marked(termsOfUse)
71+
const termsOfUseFormatted = marked(termsOfUse || '')
7272

7373
return (
7474
<div>
@@ -196,7 +196,7 @@ class CorpusMaskContainer extends Component {
196196
</div>
197197
<hr />
198198
<footer>
199-
<p>© {corpusMask.get('copyright')} {corpusMask.get('startYear')} - 2017 </p>
199+
<p>© {corpusMask.get('copyright')} {corpusMask.get('startYear')} - 2020 </p>
200200
<div className='tabbable'>
201201
<ul className='nav nav-tabs'>
202202
<li className='active'><a href='#terms' data-toggle='tab'>Terms of Use for {corpusMask.get('title')}</a></li>

app/components/Media/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Media extends Component {
5656
render () {
5757
const media = this.props.media
5858
if (!media || !media.filename || !this.props.corpus) {
59-
console.warn('Unable to render media, filename or corpus was missing', media, this.props.corpus)
59+
// console.warn('Unable to render media, filename or corpus was missing', media, this.props.corpus)
6060
return (
6161
<span />
6262
)

app/components/UserMask/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class UserMaskContainer extends Component {
4848
</div>
4949
<hr />
5050
<footer>
51-
<p>© {userMask.get('username')} {userMask.get('startYear')} 2017
51+
<p>© {userMask.get('username')} {userMask.get('startYear')} - 2020
5252
<a href='http://creativecommons.org/licenses/by/3.0/' rel='license' title='Creative Commons Attribution 3.0 License'>link
5353
<img src='//i.creativecommons.org/l/by/3.0/88x31.png' alt='License' />
5454
</a>

lib/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var getUserMask = function getUserMask(username, next) {
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 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)