Skip to content

Commit

Permalink
Merge pull request #189 from akhilesh26/fixIssue245
Browse files Browse the repository at this point in the history
fix(client): remove logger from client side.
  • Loading branch information
LordSputnik committed Mar 26, 2018
2 parents 05f08f5 + c29dd81 commit 1a9dbca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/client/components/pages/revision.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ import * as bootstrap from 'react-bootstrap';
import * as utilsHelper from '../../helpers/utils';
import CustomInput from '../../input';
import EntityLink from '../entity-link';
import Log from 'log';
import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
import request from 'superagent-bluebird-promise';


const log = new Log('debug');

const {Button, Col, ListGroup, ListGroupItem, Row} = bootstrap;
const {formatDate} = utilsHelper;

Expand Down Expand Up @@ -122,8 +119,10 @@ class RevisionPage extends React.Component {
.then(() => {
location.reload();
})
.catch((err) => {
log.debug(err);
.catch((res) => {
// TODO: Add proper error handling.
const {error} = res.body;
return error;
});
}

Expand Down

0 comments on commit 1a9dbca

Please sign in to comment.