Re-enabled logging on static error page.
This commit is contained in:
parent
c320dc8437
commit
cbef1bd3a2
1 changed files with 10 additions and 6 deletions
|
|
@ -162,6 +162,14 @@ body {
|
||||||
bailoutInfo.push({ name: 'App Name', value: 'ISS' });
|
bailoutInfo.push({ name: 'App Name', value: 'ISS' });
|
||||||
bailoutInfo.push({ name: 'Site Name', value: 'ISS 2.0' });
|
bailoutInfo.push({ name: 'Site Name', value: 'ISS 2.0' });
|
||||||
|
|
||||||
|
// Build Info
|
||||||
|
bailoutInfo.push({ name: 'Build Version', value: mainStore.issConfig?.buildInfo?.versionString });
|
||||||
|
bailoutInfo.push({ name: 'Build Time', value: mainStore.issConfig?.buildInfo?.buildTime });
|
||||||
|
|
||||||
|
// ISS Configuration Info
|
||||||
|
bailoutInfo.push({ name: 'Client Tag', value: mainStore.issConfig?.clientTag });
|
||||||
|
bailoutInfo.push({ name: 'Client Name', value: mainStore.issConfig?.clientName });
|
||||||
|
|
||||||
// Not included (yet) from heritage:
|
// Not included (yet) from heritage:
|
||||||
// - Site ID
|
// - Site ID
|
||||||
// - Code
|
// - Code
|
||||||
|
|
@ -356,19 +364,16 @@ body {
|
||||||
diagnosticContainer.remove();
|
diagnosticContainer.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Re-enable logging after some further testing.
|
|
||||||
/*
|
|
||||||
const apiHostname = environmentInfo?.apiHostname;
|
const apiHostname = environmentInfo?.apiHostname;
|
||||||
if(apiHostname) {
|
if(apiHostname) {
|
||||||
try {
|
try {
|
||||||
const endpointUrl = `https://${apiHostname}/analytics/api/v1/logging/log-error`;
|
const endpointUrl = `https://${apiHostname}/analytics/api/v1/logging/log-error`;
|
||||||
|
|
||||||
const infoString = bailoutInfo?.map(
|
const infoString = bailoutInfo?.map(
|
||||||
(entry) => `${entry.name}: ${entry.value}`
|
(entry) => `${entry.name}: ${entry.value}`
|
||||||
)?.reduce(
|
)?.reduce(
|
||||||
(prev, next) => `${prev}\n${next}`
|
(prev, next) => `${prev}\n${next}`
|
||||||
);
|
);
|
||||||
const entryString = `User encountered bailout page.\n${new Date()}\n${infoString ?? 'No information recoverable'}`;
|
const entryString = `User landed on the static-error page.\n${new Date()}\n${infoString ?? 'No information recoverable'}`;
|
||||||
|
|
||||||
const headers = generateRequestHeader(headerInfo);
|
const headers = generateRequestHeader(headerInfo);
|
||||||
|
|
||||||
|
|
@ -419,8 +424,7 @@ body {
|
||||||
console.error(`=== ERROR SENDING PAGEVIEW`);
|
console.error(`=== ERROR SENDING PAGEVIEW`);
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue