@mojaloop/central-services-shared 18.22.0 → 18.22.1
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/.nvmrc +1 -1
- package/CHANGELOG.md +7 -0
- package/CODEOWNERS +1 -1
- package/package.json +2 -2
- package/src/logger.js +1 -2
- package/src/util/index.js +5 -4
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.20.
|
|
1
|
+
18.20.6
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [18.22.1](https://github.com/mojaloop/central-services-shared/compare/v18.22.0...v18.22.1) (2025-03-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **csi-1297:** used logger.child() to create a new logger ([#439](https://github.com/mojaloop/central-services-shared/issues/439)) ([3e25d16](https://github.com/mojaloop/central-services-shared/commit/3e25d163b63147b93def4058b9bb8aecb6716bf9))
|
|
11
|
+
|
|
5
12
|
## [18.22.0](https://github.com/mojaloop/central-services-shared/compare/v18.21.0...v18.22.0) (2025-03-06)
|
|
6
13
|
|
|
7
14
|
|
package/CODEOWNERS
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## @global-owner1 and @global-owner2 will be requested for
|
|
7
7
|
## review when someone opens a pull request.
|
|
8
8
|
#* @global-owner1 @global-owner2
|
|
9
|
-
* @bushjames @elnyry-sam-k @vijayg10 @kleyow @oderayi @shashi165 @gibaros
|
|
9
|
+
* @bushjames @elnyry-sam-k @vijayg10 @kleyow @oderayi @shashi165 @gibaros @kalinkrustev @geka-evk
|
|
10
10
|
|
|
11
11
|
## Order is important; the last matching pattern takes the most
|
|
12
12
|
## precedence. When someone opens a pull request that only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/central-services-shared",
|
|
3
|
-
"version": "18.22.
|
|
3
|
+
"version": "18.22.1",
|
|
4
4
|
"description": "Shared code for mojaloop central services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ModusBox",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@hapi/joi-date": "2.0.1",
|
|
66
66
|
"@mojaloop/inter-scheme-proxy-cache-lib": "2.3.7",
|
|
67
67
|
"@mojaloop/sdk-standard-components": "19.9.0",
|
|
68
|
-
"axios": "1.8.
|
|
68
|
+
"axios": "1.8.2",
|
|
69
69
|
"clone": "2.1.2",
|
|
70
70
|
"dotenv": "16.4.7",
|
|
71
71
|
"env-var": "7.5.0",
|
package/src/logger.js
CHANGED
package/src/util/index.js
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
'use strict'
|
|
32
32
|
|
|
33
33
|
const _ = require('lodash')
|
|
34
|
+
const { logger } = require('../logger')
|
|
35
|
+
const config = require('../config')
|
|
36
|
+
|
|
34
37
|
const Kafka = require('./kafka')
|
|
35
38
|
const Endpoints = require('./endpoints')
|
|
36
39
|
const Participants = require('./participants')
|
|
@@ -51,8 +54,6 @@ const EventFramework = require('./eventFramework')
|
|
|
51
54
|
const Schema = require('./schema')
|
|
52
55
|
const OpenapiBackend = require('./openapiBackend')
|
|
53
56
|
const id = require('./id')
|
|
54
|
-
const config = require('../config')
|
|
55
|
-
const { loggerFactory } = require('@mojaloop/central-services-logger/src/contextLogger')
|
|
56
57
|
const rethrow = require('./rethrow')
|
|
57
58
|
|
|
58
59
|
const omitNil = (object) => {
|
|
@@ -225,8 +226,8 @@ const filterExtensions = (extensionsArray, exclKeysArray, exclValuesArray) => {
|
|
|
225
226
|
})
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
const createLogger = (
|
|
229
|
-
const log =
|
|
229
|
+
const createLogger = (component) => {
|
|
230
|
+
const log = logger.child({ component })
|
|
230
231
|
log.setLevel(config.get('logLevel'))
|
|
231
232
|
return log
|
|
232
233
|
}
|