Change internal storage to number instead of Date
Summary: per title, for reasons see next diff :) Reviewed By: passy Differential Revision: D29327501 fbshipit-source-id: 548d943e90769af478232d3031d916fb399a067a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d02c560150
commit
aff02b2ca1
@@ -9,7 +9,7 @@
|
||||
|
||||
import type {DeviceLogEntry, DevicePluginClient} from 'flipper-plugin';
|
||||
import {UNKNOWN_CRASH_REASON} from './crash-utils';
|
||||
import type {Crash, CrashLog} from './index';
|
||||
import type {CrashLog} from './index';
|
||||
|
||||
export function parseAndroidCrash(content: string, logDate?: Date) {
|
||||
const regForName = /.*\n/;
|
||||
@@ -35,7 +35,7 @@ export function parseAndroidCrash(content: string, logDate?: Date) {
|
||||
callstack: content,
|
||||
name: name,
|
||||
reason: reason,
|
||||
date: logDate,
|
||||
date: logDate?.getTime(),
|
||||
};
|
||||
return crash;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export function shouldParseAndroidLog(
|
||||
|
||||
export function startAndroidCrashWatcher(
|
||||
client: DevicePluginClient,
|
||||
reportCrash: (payload: CrashLog | Crash) => void,
|
||||
reportCrash: (payload: CrashLog) => void,
|
||||
) {
|
||||
const referenceDate = new Date();
|
||||
let androidLog: string = '';
|
||||
|
||||
Reference in New Issue
Block a user