We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81190c commit d0008aeCopy full SHA for d0008ae
src/misc.js
@@ -219,16 +219,17 @@ export function reportError(err) {
219
v: 1,
220
tid: 'UA-1768265-13',
221
cid: uuid(),
222
- cd1: process.env.PLATFORMIO_CALLER,
223
aid: 'node.helpers',
224
av: PACKAGE_VERSION,
225
an: `${os.type()}, ${os.release()}, ${os.arch()}`,
226
t: 'exception',
227
exd: err.toString(),
228
exf: 1
229
};
+ if (process.env.PLATFORMIO_CALLER) {
230
+ data['cd1'] = process.env.PLATFORMIO_CALLER;
231
+ }
232
request.post('https://www.google-analytics.com/collect', {
- body: data,
- json: true
233
+ body: qs.stringify(data)
234
});
235
}
0 commit comments