@jaypie/express 1.2.4-rc13 → 1.2.4-rc14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1720,6 +1720,10 @@ function expressHandler(handlerOrOptions, optionsOrHandler) {
|
|
|
1720
1720
|
catch (error) {
|
|
1721
1721
|
log.fatal("Express encountered an error while sending the response");
|
|
1722
1722
|
log.var({ responseError: error });
|
|
1723
|
+
// Log full stack trace for debugging
|
|
1724
|
+
if (error instanceof Error && error.stack) {
|
|
1725
|
+
log.error(error.stack);
|
|
1726
|
+
}
|
|
1723
1727
|
}
|
|
1724
1728
|
// Log response
|
|
1725
1729
|
const extras = {};
|