@unito/integration-sdk 1.0.19 → 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.
@@ -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 incomming requests, prior to any processing.
994
+ // Making sure we log all incoming requests (except to '/health'), prior any processing.
995
995
  app.use((req, res, next) => {
996
- res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
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.
@@ -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 incomming requests, prior to any processing.
125
+ // Making sure we log all incoming requests (except to '/health'), prior any processing.
126
126
  app.use((req, res, next) => {
127
- res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Integration SDK",
5
5
  "type": "module",
6
6
  "types": "dist/src/index.d.ts",
@@ -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 incomming requests, prior to any processing.
142
+ // Making sure we log all incoming requests (except to '/health'), prior any processing.
143
143
  app.use((req, res, next) => {
144
- res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
145
-
144
+ if (req.originalUrl !== '/health') {
145
+ res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
146
+ }
146
147
  next();
147
148
  });
148
149