Expose crash reporter start for child node processes

This commit is contained in:
Ramya Achutha Rao 2016-12-01 18:19:57 -08:00 committed by Kevin Sawicki
parent 61aff5ed35
commit d4b44d8b69
6 changed files with 77 additions and 11 deletions

View 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();