Compare View
Commits (2)
Changes
Showing 4 changed files Side-by-side Diff
CHANGELOG.md
... | ... | @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d |
4 | 4 | |
5 | 5 | Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). |
6 | 6 | |
7 | +#### [v0.1.7](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.6...v0.1.7) | |
8 | + | |
9 | +- Add global.SDK_PUSH_TRX_DEBUG_ALL_GATEWAYS_FROM_CONFIG [`536fc02`](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/commit/536fc0223d0de2be5b962ba6f890caa87c73b7c4) | |
10 | + | |
7 | 11 | #### [v0.1.6](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.5...v0.1.6) |
8 | 12 | |
13 | +> 7 February 2022 | |
14 | + | |
9 | 15 | - Add a debug [`a7c13f0`](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/commit/a7c13f0fc15a641a5787718f549ea43184293cb3) |
10 | 16 | |
11 | 17 | #### [v0.1.5](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.4...v0.1.5) |
lib/client/index.js
... | ... | @@ -5,15 +5,24 @@ const logger = require('tektrans-logger'); |
5 | 5 | const uniqid = require('uniqid'); |
6 | 6 | const connect = require('./connect'); |
7 | 7 | |
8 | +const debugAllGatewaysFromConfig = global.SDK_PUSH_TRX_DEBUG_ALL_GATEWAYS_FROM_CONFIG | |
9 | + || false; | |
10 | + | |
8 | 11 | const connectAll = (xidFromCaller) => { |
9 | 12 | const xid = xidFromCaller || uniqid(); |
10 | 13 | |
11 | 14 | const gateways = config.gateways |
12 | 15 | .filter((gateway) => !gateway.disabled && gateway.url && gateway.name); |
13 | 16 | |
14 | - logger.debug(`${MODULE_NAME} 79B5FEB5: Connecting to all gateways`, { | |
17 | + if (debugAllGatewaysFromConfig) { | |
18 | + logger.verbose(`${MODULE_NAME} 80C7AAD6: Dumping config.gateways`, { | |
19 | + xid, | |
20 | + gateways: config.gateways, | |
21 | + }); | |
22 | + } | |
23 | + | |
24 | + logger.verbose(`${MODULE_NAME} 79B5FEB5: Connecting to all gateways`, { | |
15 | 25 | xid, |
16 | - configGateways: config.gateways, | |
17 | 26 | gatewayNames: gateways.map((gateway) => gateway.name), |
18 | 27 | }); |
19 | 28 |
package-lock.json
1 | 1 | { |
2 | 2 | "name": "komodo-sdk-push-trx", |
3 | - "version": "0.1.6", | |
3 | + "version": "0.1.7", | |
4 | 4 | "lockfileVersion": 2, |
5 | 5 | "requires": true, |
6 | 6 | "packages": { |
7 | 7 | "": { |
8 | 8 | "name": "komodo-sdk-push-trx", |
9 | - "version": "0.1.6", | |
9 | + "version": "0.1.7", | |
10 | 10 | "license": "ISC", |
11 | 11 | "dependencies": { |
12 | 12 | "express": "^4.17.2", |