@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/esm/index.js
CHANGED
|
@@ -1718,6 +1718,10 @@ function expressHandler(handlerOrOptions, optionsOrHandler) {
|
|
|
1718
1718
|
catch (error) {
|
|
1719
1719
|
log.fatal("Express encountered an error while sending the response");
|
|
1720
1720
|
log.var({ responseError: error });
|
|
1721
|
+
// Log full stack trace for debugging
|
|
1722
|
+
if (error instanceof Error && error.stack) {
|
|
1723
|
+
log.error(error.stack);
|
|
1724
|
+
}
|
|
1721
1725
|
}
|
|
1722
1726
|
// Log response
|
|
1723
1727
|
const extras = {};
|