feat: deprecate uncompressed crash uploads (#23598)

This commit is contained in:
Jeremy Apthorp 2020-05-19 13:47:21 -07:00 committed by GitHub
parent bca071f428
commit 8de06f0c57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -1,4 +1,4 @@
import { app } from 'electron';
import { app, deprecate } from 'electron';
const binding = process.electronBinding('crash_reporter');
@ -18,6 +18,10 @@ class CrashReporter {
if (submitURL == null) throw new Error('submitURL is a required option to crashReporter.start');
if (!compress) {
deprecate.log('Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.');
}
const appVersion = app.getVersion();
if (companyName && globalExtra._companyName == null) globalExtra._companyName = companyName;