Update crashReports configuration on alpha

This commit is contained in:
Fedor Indutny 2024-02-06 11:37:46 -08:00 committed by GitHub
parent fde9facad5
commit c02a70993f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ import { basename, join } from 'path';
import type { LoggerType } from '../ts/types/Logging';
import * as Errors from '../ts/types/errors';
import { isProduction } from '../ts/util/version';
import { isAlpha } from '../ts/util/version';
import { upload as uploadDebugLog } from '../ts/logging/uploadDebugLog';
import { SignalService as Proto } from '../ts/protobuf';
import OS from '../ts/util/os/osMain';
@ -47,7 +47,7 @@ async function eraseDumps(
}
export function setup(getLogger: () => LoggerType, forceEnable = false): void {
const isEnabled = !isProduction(app.getVersion()) || forceEnable;
const isEnabled = isAlpha(app.getVersion()) || forceEnable;
if (isEnabled) {
getLogger().info(`crashReporter: ${forceEnable ? 'force ' : ''}enabled`);