mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: migrate console logs to logging service (#10608)
This commit is contained in:
@@ -20,6 +20,7 @@ import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import { Alert } from 'react-bootstrap';
|
||||
import styled from '@superset-ui/style';
|
||||
import { logging } from '@superset-ui/core';
|
||||
|
||||
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
|
||||
import { Logger, LOG_ACTIONS_RENDER_CHART } from '../logger/LogUtils';
|
||||
@@ -131,7 +132,7 @@ class Chart extends React.PureComponent {
|
||||
|
||||
handleRenderContainerFailure(error, info) {
|
||||
const { actions, chartId } = this.props;
|
||||
console.warn(error); // eslint-disable-line
|
||||
logging.warn(error);
|
||||
actions.chartRenderingFailed(
|
||||
error.toString(),
|
||||
chartId,
|
||||
|
||||
@@ -20,6 +20,7 @@ import { snakeCase } from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import { SuperChart } from '@superset-ui/chart';
|
||||
import { logging } from '@superset-ui/core';
|
||||
import { Logger, LOG_ACTIONS_RENDER_CHART } from '../logger/LogUtils';
|
||||
|
||||
const propTypes = {
|
||||
@@ -124,7 +125,7 @@ class ChartRenderer extends React.Component {
|
||||
|
||||
handleRenderFailure(error, info) {
|
||||
const { actions, chartId } = this.props;
|
||||
console.warn(error); // eslint-disable-line
|
||||
logging.warn(error);
|
||||
actions.chartRenderingFailed(
|
||||
error.toString(),
|
||||
chartId,
|
||||
|
||||
Reference in New Issue
Block a user