Re-enabled logging on static error page.

This commit is contained in:
Jeremy-Z 2026-06-17 11:59:51 -04:00
parent c320dc8437
commit cbef1bd3a2

View file

@ -162,6 +162,14 @@ body {
bailoutInfo.push({ name: 'App Name', value: 'ISS' });
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:
// - Site ID
// - Code
@ -356,19 +364,16 @@ body {
diagnosticContainer.remove();
}
// TODO: Re-enable logging after some further testing.
/*
const apiHostname = environmentInfo?.apiHostname;
if(apiHostname) {
try {
const endpointUrl = `https://${apiHostname}/analytics/api/v1/logging/log-error`;
const infoString = bailoutInfo?.map(
(entry) => `${entry.name}: ${entry.value}`
)?.reduce(
(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);
@ -419,8 +424,7 @@ body {
console.error(`=== ERROR SENDING PAGEVIEW`);
console.error(e);
}
}
*/
}
};
</script>
</body>