@go-mailer/jarvis 10.7.1 → 10.7.2

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.
@@ -73,16 +73,16 @@ function RequestLogger () {
73
73
 
74
74
  class ProcessLogger {
75
75
  constructor (service = 'System') {
76
- this.app_name = Env.fetch('APP_NAME', true)
77
- this.env = Env.fetch('NODE_ENV', true)
78
76
  this.service = service
79
77
  }
80
78
 
81
79
  error (error, method = 'unspecified_method', params = {}) {
80
+ const app_name = Env.fetch('APP_NAME', true)
81
+ const env = Env.fetch('NODE_ENV', true)
82
82
  sendLog({
83
83
  type: 'error',
84
- service: this.app_name,
85
- environment: this.env,
84
+ service: app_name,
85
+ environment: env,
86
86
  message: error.message,
87
87
  log_data: { ...params, stack: error.stack }
88
88
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "10.7.1",
3
+ "version": "10.7.2",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",