Consolidate all console.log into the @0xproject/utils package
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Styles,
|
||||
utils as sharedUtils,
|
||||
} from '@0xproject/react-shared';
|
||||
import { logUtils } from '@0xproject/utils';
|
||||
import * as _ from 'lodash';
|
||||
import CircularProgress from 'material-ui/CircularProgress';
|
||||
import RaisedButton from 'material-ui/RaisedButton';
|
||||
@@ -213,7 +214,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> {
|
||||
if (response.status !== 200) {
|
||||
// TODO: Show the user an error message when the wiki fail to load
|
||||
const errMsg = await response.text();
|
||||
utils.consoleLog(`Failed to load wiki: ${response.status} ${errMsg}`);
|
||||
logUtils.log(`Failed to load wiki: ${response.status} ${errMsg}`);
|
||||
return;
|
||||
}
|
||||
const articlesBySection = await response.json();
|
||||
|
Reference in New Issue
Block a user