Skip to content

Commit

Permalink
[logging] Add render failure error into log (apache#6422)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2489876)
  • Loading branch information
Grace Guo committed Nov 27, 2018
1 parent 5a874f7 commit 245a1ec
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 @@ -139,6 +139,14 @@ class Chart extends React.PureComponent {
console.warn(error); // eslint-disable-line
this.props.actions.chartRenderingFailed(error, this.props.chartId);
});

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,
});
}

addFilter(col, vals, merge = true, refresh = true) {
Expand Down

0 comments on commit 245a1ec

Please sign in to comment.