@unito/integration-sdk 1.0.20 → 1.0.21
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/src/index.cjs +4 -2
- package/dist/src/integration.js +4 -2
- package/package.json +1 -1
- package/src/integration.ts +4 -3
package/dist/src/index.cjs
CHANGED
|
@@ -991,9 +991,11 @@ class Integration {
|
|
|
991
991
|
app.use(middleware$5);
|
|
992
992
|
app.use(middleware$4);
|
|
993
993
|
app.use(middleware$7);
|
|
994
|
-
// Making sure we log all
|
|
994
|
+
// Making sure we log all incoming requests (except to '/health'), prior any processing.
|
|
995
995
|
app.use((req, res, next) => {
|
|
996
|
-
|
|
996
|
+
if (req.originalUrl !== '/health') {
|
|
997
|
+
res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
|
|
998
|
+
}
|
|
997
999
|
next();
|
|
998
1000
|
});
|
|
999
1001
|
// Load handlers as needed.
|
package/dist/src/integration.js
CHANGED
|
@@ -122,9 +122,11 @@ export default class Integration {
|
|
|
122
122
|
app.use(filtersMiddleware);
|
|
123
123
|
app.use(selectsMiddleware);
|
|
124
124
|
app.use(signalMiddleware);
|
|
125
|
-
// Making sure we log all
|
|
125
|
+
// Making sure we log all incoming requests (except to '/health'), prior any processing.
|
|
126
126
|
app.use((req, res, next) => {
|
|
127
|
-
|
|
127
|
+
if (req.originalUrl !== '/health') {
|
|
128
|
+
res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
|
|
129
|
+
}
|
|
128
130
|
next();
|
|
129
131
|
});
|
|
130
132
|
// Load handlers as needed.
|
package/package.json
CHANGED
package/src/integration.ts
CHANGED
|
@@ -139,10 +139,11 @@ export default class Integration {
|
|
|
139
139
|
app.use(selectsMiddleware);
|
|
140
140
|
app.use(signalMiddleware);
|
|
141
141
|
|
|
142
|
-
// Making sure we log all
|
|
142
|
+
// Making sure we log all incoming requests (except to '/health'), prior any processing.
|
|
143
143
|
app.use((req, res, next) => {
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
if (req.originalUrl !== '/health') {
|
|
145
|
+
res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
|
|
146
|
+
}
|
|
146
147
|
next();
|
|
147
148
|
});
|
|
148
149
|
|