mirror of https://github.com/apache/superset.git
[logging] Add render failure error into log (#6422)
This commit is contained in:
parent
5ca8c0ba3c
commit
2489876bc9
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue