Send isHeadlessBuild flag in error reporting
Summary: Andrey's diff already ensures that we send the flag, this also adds it to the info string which makes it more visible. Reviewed By: lblasa Differential Revision: D36699070 fbshipit-source-id: 905eded9612b19ecaa35a841ec240af002e11611
This commit is contained in:
committed by
Facebook GitHub Bot
parent
11ff9b51e3
commit
db045a3b21
@@ -18,6 +18,7 @@ import {getRenderHostInstance} from '../RenderHost';
|
|||||||
type PlatformInfo = {
|
type PlatformInfo = {
|
||||||
arch: string;
|
arch: string;
|
||||||
platform: string;
|
platform: string;
|
||||||
|
isHeadlessBuild: boolean;
|
||||||
unixname: string;
|
unixname: string;
|
||||||
versions: {
|
versions: {
|
||||||
[key: string]: string | undefined;
|
[key: string]: string | undefined;
|
||||||
@@ -85,6 +86,7 @@ export function getInfo(): Info {
|
|||||||
platformInfo = {
|
platformInfo = {
|
||||||
arch: envInfo.os.arch,
|
arch: envInfo.os.arch,
|
||||||
platform: envInfo.os.platform,
|
platform: envInfo.os.platform,
|
||||||
|
isHeadlessBuild: envInfo.isHeadlessBuild,
|
||||||
unixname: envInfo.os.unixname,
|
unixname: envInfo.os.unixname,
|
||||||
versions: envInfo.versions,
|
versions: envInfo.versions,
|
||||||
};
|
};
|
||||||
@@ -101,7 +103,9 @@ export function getAppVersion(): string {
|
|||||||
|
|
||||||
export function stringifyInfo(info: Info): string {
|
export function stringifyInfo(info: Info): string {
|
||||||
const lines = [
|
const lines = [
|
||||||
`Platform: ${info.platform} ${info.arch}`,
|
`Platform: ${info.platform} ${info.arch} (${
|
||||||
|
info.isHeadlessBuild ? 'headless' : 'desktop'
|
||||||
|
})`,
|
||||||
`Unixname: ${info.unixname}`,
|
`Unixname: ${info.unixname}`,
|
||||||
`Versions:`,
|
`Versions:`,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user