chore: Add a condition to crashReporter deprecate log (#27953)
* Add a condition to crashReporter deprecate log When developer set submitURL to '' crash reports will be saved at `...\AppData\Roaming\...\Crashpad\reports`, will not be uploaded to the server. So at this time `deprecate.log('Sending uncompressed crash reports....')` is unnecessary. * Update lib/browser/api/crash-reporter.ts change to check uploadToServer Co-authored-by: Jeremy Rose <nornagon@nornagon.net> Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
parent
afb7d9f550
commit
54bc71da34
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class CrashReporter {
|
|||
|
||||
if (submitURL == null) throw new Error('submitURL is a required option to crashReporter.start');
|
||||
|
||||
if (!compress) {
|
||||
if (!compress && uploadToServer) {
|
||||
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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue