feat: deprecate uncompressed crash uploads (#23598)
This commit is contained in:
parent
bca071f428
commit
8de06f0c57
2 changed files with 22 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue