@unito/integration-sdk 1.0.7 → 1.0.8

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.
@@ -919,6 +919,11 @@ class Integration {
919
919
  app.use(middleware$5);
920
920
  app.use(middleware$4);
921
921
  app.use(middleware$6);
922
+ // Making sure we log all incomming requests, prior to any processing.
923
+ app.use((req, res, next) => {
924
+ res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
925
+ next();
926
+ });
922
927
  // Load handlers as needed.
923
928
  if (this.handlers.length) {
924
929
  for (const handler of this.handlers) {
@@ -120,6 +120,11 @@ export default class Integration {
120
120
  app.use(secretsMiddleware);
121
121
  app.use(selectsMiddleware);
122
122
  app.use(signalMiddleware);
123
+ // Making sure we log all incomming requests, prior to any processing.
124
+ app.use((req, res, next) => {
125
+ res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
126
+ next();
127
+ });
123
128
  // Load handlers as needed.
124
129
  if (this.handlers.length) {
125
130
  for (const handler of this.handlers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Integration SDK",
5
5
  "type": "module",
6
6
  "types": "dist/src/index.d.ts",
@@ -137,6 +137,13 @@ export default class Integration {
137
137
  app.use(selectsMiddleware);
138
138
  app.use(signalMiddleware);
139
139
 
140
+ // Making sure we log all incomming requests, prior to any processing.
141
+ app.use((req, res, next) => {
142
+ res.locals.logger.info(`Initializing request for ${req.originalUrl}`);
143
+
144
+ next();
145
+ });
146
+
140
147
  // Load handlers as needed.
141
148
  if (this.handlers.length) {
142
149
  for (const handler of this.handlers) {