mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 17:08:57 +01:00
Update crashReports configuration on alpha
This commit is contained in:
+2
-2
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user