interledgerjs / ilp-plugin-btp

This has been moved to the monorepo https://github.com/interledgerjs/interledgerjs
8 stars 7 forks source link

feat: use logger from plugin services #9

Closed justmoon closed 6 years ago

justmoon commented 6 years ago

When running in the connector, this changes logs from:

2018-01-27T06:32:10.418Z connector:ilp-plugin-btp debug replying to request 982676863 with [{"protocolName":"ilp","contentType":0,"data":{"type":"Buffer","data":[123,125]}}]
2018-01-27T06:32:10.419Z connector:ilp-plugin-btp debug processing btp packet {"type":1,"requestId":982676863,"data":{"protocolData":[{"protocolName":"ilp","contentType":0,"data":{"type":"Buffer","data":[123,125]}}]}}

to

2018-01-27T06:32:10.418Z connector:ilp-plugin-btp[u4] debug replying to request 982676863 with [{"protocolName":"ilp","contentType":0,"data":{"type":"Buffer","data":[123,125]}}]
2018-01-27T06:32:10.419Z connector:ilp-plugin-btp[u6] debug processing btp packet {"type":1,"requestId":982676863,"data":{"protocolData":[{"protocolName":"ilp","contentType":0,"data":{"type":"Buffer","data":[123,125]}}]}}

Note the account id in square brackets.