@autofleet/shtinker 1.1.7-beta.6 → 1.1.7-beta.7
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/index.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ exports.enableAuditing = enableAuditing;
|
|
|
45
45
|
const setAuditContext = (entityType, action) => (req, res, next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
46
|
try {
|
|
47
47
|
if ((0, exports.shouldSkipAuditLogic)()) {
|
|
48
|
+
logger_1.default.info('setAuditContext skipped', { entityType, action });
|
|
48
49
|
return next();
|
|
49
50
|
}
|
|
50
51
|
const currentTrace = (0, zehut_1.getCurrentPayload)();
|
|
@@ -70,6 +71,7 @@ exports.setAuditContext = setAuditContext;
|
|
|
70
71
|
const setRabbitAuditContext = (entityType, action) => (endpoint) => __awaiter(void 0, void 0, void 0, function* () {
|
|
71
72
|
var _a;
|
|
72
73
|
if ((0, exports.shouldSkipAuditLogic)()) {
|
|
74
|
+
logger_1.default.info('setRabbitAuditContext skipped', { entityType, action });
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
const currentTrace = (0, zehut_1.getCurrentPayload)();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export const setAuditContext = (
|
|
|
23
23
|
) => async (req: any, res: any, next: any): Promise<any> => {
|
|
24
24
|
try {
|
|
25
25
|
if (shouldSkipAuditLogic()) {
|
|
26
|
+
logger.info('setAuditContext skipped', { entityType, action });
|
|
26
27
|
return next();
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -50,6 +51,7 @@ export const setRabbitAuditContext = (
|
|
|
50
51
|
action: string,
|
|
51
52
|
) => async (endpoint: string): Promise<any> => {
|
|
52
53
|
if (shouldSkipAuditLogic()) {
|
|
54
|
+
logger.info('setRabbitAuditContext skipped', { entityType, action });
|
|
53
55
|
return;
|
|
54
56
|
}
|
|
55
57
|
const currentTrace = getCurrentTrace();
|