@open-norantec/herbal 1.0.2-alpha.5 → 1.0.2-alpha.6
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.
|
@@ -136,6 +136,7 @@ var ControllerInterceptor = (function () {
|
|
|
136
136
|
_.attempt(function () {
|
|
137
137
|
_this.getLogger().error("[trace:".concat(request === null || request === void 0 ? void 0 : request.traceId, ":response:error:stack] ").concat(error === null || error === void 0 ? void 0 : error.stack));
|
|
138
138
|
});
|
|
139
|
+
_this.getLogger().error("Got error when handling route in interceptor: ".concat(error === null || error === void 0 ? void 0 : error.message, " ").concat(error === null || error === void 0 ? void 0 : error.stack));
|
|
139
140
|
_.attempt(function () { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = request === null || request === void 0 ? void 0 : request.transaction) === null || _a === void 0 ? void 0 : _a.rollback) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.catch) === null || _d === void 0 ? void 0 : _d.call(_c, function () { }); });
|
|
140
141
|
return (0, rxjs_1.throwError)(function () { return error; });
|
|
141
142
|
}));
|
|
@@ -257,6 +258,7 @@ function HerbalGuard(options) {
|
|
|
257
258
|
_m.label = 25;
|
|
258
259
|
case 25:
|
|
259
260
|
_m.trys.push([25, 27, , 28]);
|
|
261
|
+
this.getLogger().error("Got error when handling route: ".concat(error_1 === null || error_1 === void 0 ? void 0 : error_1.message, " ").concat(error_1 === null || error_1 === void 0 ? void 0 : error_1.stack));
|
|
260
262
|
return [4, ((_h = transaction === null || transaction === void 0 ? void 0 : transaction.rollback) === null || _h === void 0 ? void 0 : _h.call(transaction))];
|
|
261
263
|
case 26:
|
|
262
264
|
_m.sent();
|