Add 'Redux State' to bug reports

Summary:
Now the BugReporter has access to the logs and the redux store, to submit more useful bug reports.
This isn't currently used in open source, unless you override / replace this file.

Reviewed By: danielbuechele

Differential Revision: D13058210

fbshipit-source-id: e52a3cb528693ab171843080685e5342e0b6a393
This commit is contained in:
John Knox
2018-11-14 05:47:18 -08:00
committed by Facebook Github Bot
parent 533c1ab59b
commit 9f13e1422b
3 changed files with 5 additions and 3 deletions

View File

@@ -7,8 +7,10 @@
import LogManager from './Logger';
import type {Store} from '../reducers/index.js';
export default class BugReporter {
constructor(logManager: LogManager) {}
constructor(logManager: LogManager, store: Store) {}
async report(title: string, body: string): Promise<number> {
return Promise.resolve(-1);
}