Commit 7aed3590d4d688f08fa69d06f53147502d0cf6e4
1 parent
76c767fae1
Exists in
master
More verbose log on disabled server
Showing 1 changed file with 9 additions and 1 deletions Side-by-side Diff
server.js
... | ... | @@ -21,6 +21,7 @@ const server = createServer(); |
21 | 21 | let partner; |
22 | 22 | |
23 | 23 | exports.setPartner = (partnerFromCaller) => { |
24 | + logger.verbose(`${MODULE_NAME} D56C3427: Partner set`); | |
24 | 25 | partner = partnerFromCaller; |
25 | 26 | }; |
26 | 27 | |
... | ... | @@ -28,7 +29,14 @@ const wsListenPort = config.push_trx_server |
28 | 29 | && (config.push_trx_server.port || config.push_trx_server.listen_port); |
29 | 30 | |
30 | 31 | if (!wsListenPort) { |
31 | - logger.info(`${MODULE_NAME} 58ACCE20: Disabling PUSH_TRX_SERVER`); | |
32 | + logger.info(`${MODULE_NAME} 58ACCE20: Disabling PUSH_TRX_SERVER`, { | |
33 | + config: { | |
34 | + push_trx_server: !!config && !!config.push_trx_server && { | |
35 | + port: !!config.push_trx_server.port, | |
36 | + listen_port: !!config.push_trx_server.listen_port, | |
37 | + }, | |
38 | + }, | |
39 | + }); | |
32 | 40 | } else { |
33 | 41 | const wss = new WebSocketServer({ noServer: true, perMessageDeflate: true }); |
34 | 42 |