@onlineapps/service-wrapper 2.0.11 → 2.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/service-wrapper",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -183,7 +183,7 @@ class ServiceWrapper {
183
183
 
184
184
  res.on('finish', () => {
185
185
  const duration = Date.now() - start;
186
- this.monitoring.info('Request processed', {
186
+ this.monitoring?.info && this.monitoring.info('Request processed', {
187
187
  method: req.method,
188
188
  path: req.path,
189
189
  statusCode: res.statusCode,