Stash and export debug logs
Summary: Design doc: https://docs.google.com/document/d/1HLCFl46RfqG0o1mSt8SWrwf_HMfOCRg_oENioc1rkvQ/edit# Stash all logs including debug ones for the export Reviewed By: lblasa Differential Revision: D40467905 fbshipit-source-id: 963ce8e92d2131220640a63f5e9c38f4317af061
This commit is contained in:
committed by
Facebook GitHub Bot
parent
be72375d18
commit
0e5af8095f
@@ -32,7 +32,7 @@ import ShareSheetExportFile from '../chrome/ShareSheetExportFile';
|
||||
import ExportDataPluginSheet from '../chrome/ExportDataPluginSheet';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import {uploadFlipperMedia} from '../fb-stubs/user';
|
||||
import {logsAtom} from '../chrome/ConsoleLogs';
|
||||
import {exportLogs} from '../chrome/ConsoleLogs';
|
||||
|
||||
export const IMPORT_FLIPPER_TRACE_EVENT = 'import-flipper-trace';
|
||||
export const EXPORT_FLIPPER_TRACE_EVENT = 'export-flipper-trace';
|
||||
@@ -606,8 +606,7 @@ export function canFileExport() {
|
||||
}
|
||||
|
||||
export async function startLogsExport() {
|
||||
const serializedLogs = logsAtom
|
||||
.get()
|
||||
const serializedLogs = exportLogs
|
||||
.map((item) => JSON.stringify(item))
|
||||
.join('\n');
|
||||
await getRenderHostInstance().exportFile?.(serializedLogs);
|
||||
|
||||
Reference in New Issue
Block a user