Log TimelinePanel
debugging info when opening the bug report modal (#8502)
To debug all of the timeline problems: - https://github.com/vector-im/element-web/issues/21613 - https://github.com/vector-im/element-web/issues/21922 - https://github.com/vector-im/element-web/issues/21432 - https://github.com/vector-im/element-web/issues/21533
This commit is contained in:
parent
d5b363e971
commit
3a241e0dfb
4 changed files with 114 additions and 1 deletions
|
@ -30,6 +30,8 @@ import Field from '../elements/Field';
|
|||
import Spinner from "../elements/Spinner";
|
||||
import DialogButtons from "../elements/DialogButtons";
|
||||
import { sendSentryReport } from "../../../sentry";
|
||||
import defaultDispatcher from '../../../dispatcher/dispatcher';
|
||||
import { Action } from '../../../dispatcher/actions';
|
||||
|
||||
interface IProps {
|
||||
onFinished: (success: boolean) => void;
|
||||
|
@ -65,6 +67,16 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
|
|||
downloadProgress: null,
|
||||
};
|
||||
this.unmounted = false;
|
||||
|
||||
// Get all of the extra info dumped to the console when someone is about
|
||||
// to send debug logs. Since this is a fire and forget action, we do
|
||||
// this when the bug report dialog is opened instead of when we submit
|
||||
// logs because we have no signal to know when all of the various
|
||||
// components have finished logging. Someone could potentially send logs
|
||||
// before we fully dump everything but it's probably unlikely.
|
||||
defaultDispatcher.dispatch({
|
||||
action: Action.DumpDebugLogs,
|
||||
});
|
||||
}
|
||||
|
||||
public componentWillUnmount() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue