@superhero/eventflow-hub 4.4.4 → 4.4.6

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -52,7 +52,7 @@ export default class Hub
52
52
  this.#hubID = (new IdNameGenerator().generateId() + '.' + config.NAME).toUpperCase()
53
53
  this.config = config
54
54
  this.db = db
55
- this.log = new Log({ label: `[EVENTFLOW:HUB:${this.#hubID}]` })
55
+ this.log = new Log(Object.assign({ label: `[EVENTFLOW:HUB:${this.#hubID}]` }, config.log))
56
56
  this.certificates = new CertificatesManager(config.NAME, this.#hubID, config.certificates, db)
57
57
 
58
58
  for(const level of [ 'info', 'warn', 'fail' ])
@@ -158,6 +158,7 @@ export default class Hub
158
158
  }
159
159
  catch(error)
160
160
  {
161
+ this.log.fail`failed to create secure context [${error.code}] ${error}`
161
162
  return cb(error)
162
163
  }
163
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/eventflow-hub",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "description": "Eventflow hub is the central server component in the eventflow ecosystem.",
5
5
  "keywords": [
6
6
  "eventflow",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@superhero/id-name-generator": "^4.0.0",
18
- "@superhero/log": "^4.0.1",
19
- "@superhero/eventflow-certificates": "^4.4.3",
18
+ "@superhero/log": "^4.0.2",
19
+ "@superhero/eventflow-certificates": "^4.4.6",
20
20
  "@superhero/eventflow-db": "^4.4.0",
21
21
  "@superhero/tcp-record-channel": "^4.2.2",
22
22
  "@superhero/deep": "^4.2.0"