Expose crash reporter start for child node processes
This commit is contained in:
parent
61aff5ed35
commit
d4b44d8b69
6 changed files with 77 additions and 11 deletions
12
default_app/forkedProcess.js
Normal file
12
default_app/forkedProcess.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const os = require('os')
|
||||
const path = require('path')
|
||||
|
||||
let productName = 'Child Product';
|
||||
let companyName = 'Child Company';
|
||||
let tmpPath = path.join(os.tmpdir(), productName + ' Crashes');
|
||||
|
||||
process.startCrashReporter(productName, companyName, 'http://localhost:8080/uploadDump/childDump', tmpPath, {
|
||||
randomData1: 'The Holidays are here!',
|
||||
randomData2: 'Happy New Year!'
|
||||
});
|
||||
process.crash();
|
Loading…
Add table
Add a link
Reference in a new issue