Skip to content

Commit

Permalink
[logging] Add render failure error into log (#6422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored Nov 26, 2018
1 parent 5ca8c0b commit 2489876
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions superset/assets/src/chart/Chart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ class Chart extends React.PureComponent {
const { actions, chartId } = this.props;
console.warn(error); // eslint-disable-line
actions.chartRenderingFailed(error.toString(), chartId, info ? info.componentStack : null);

Logger.append(LOG_ACTIONS_RENDER_CHART, {
slice_id: chartId,
has_err: true,
error_details: error.toString(),
start_offset: this.renderStartTime,
duration: Logger.getTimestamp() - this.renderStartTime,
});
}

prepareChartProps() {
Expand Down

0 comments on commit 2489876

Please sign in to comment.