streamingfast / firehose-arweave

The firehose integration with the garii
Apache License 2.0
0 stars 0 forks source link

component name logging not working? #4

Closed matthewdarwin closed 2 years ago

matthewdarwin commented 2 years ago

Our dauth plugin is not registering a component name. It says '<n/a>'. Advice?

 2022-05-24T11:44:19.403Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:19.904Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:19.937Z (firehose.hub.js) incoming live block {"block": "#940174 (a60b03b137464e274160ed38431f5de294c68023cbc72f3fd7d50965ff82e11f7e98ade984cc45b1a2c9a6b86543b0a8)", "live_pass_through": true}
 2022-05-24T11:44:24.905Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:25.279Z (<n/a>) accumulator sleep over
 2022-05-24T11:44:25.279Z (<n/a>) emitting accumulated events
 2022-05-24T11:44:29.416Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:29.906Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:34.906Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:35.261Z (firehose.hub.js) joining state LIVE {"last_live_block": 940174}
 2022-05-24T11:44:35.280Z (<n/a>) accumulator sleep over
 2022-05-24T11:44:35.280Z (<n/a>) emitting accumulated events
 2022-05-24T11:44:39.430Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:39.907Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:44.907Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:45.280Z (<n/a>) accumulator sleep over
 2022-05-24T11:44:45.280Z (<n/a>) emitting accumulated events
 2022-05-24T11:44:47.595Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:49.444Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:49.908Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:54.909Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:44:55.281Z (<n/a>) accumulator sleep over
 2022-05-24T11:44:55.281Z (<n/a>) emitting accumulated events
 2022-05-24T11:44:59.459Z (<n/a>) created ip quota based credentials {"credentials": {"sub":"ip:127.0.0.1","api_key_id":"","networks":[{"name":"arweave","quota":0,"rate":100}]}}
 2022-05-24T11:44:59.909Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:45:04.910Z (<n/a>) updating black list: {"id_count": 0, "ids": []}
 2022-05-24T11:45:05.262Z (firehose.hub.js) joining state LIVE {"last_live_block": 940174}
 2022-05-24T11:45:05.282Z (<n/a>) accumulator sleep over
 2022-05-24T11:45:05.282Z (<n/a>) emitting accumulated events
sduchesneau commented 2 years ago

are you setting it up with: var zlog, tracer = logging.PackageLogger("dauth", "github.com/...") ? (with a fairly recent github.com:streamingfast/logging package)

matthewdarwin commented 2 years ago

it's fixed on our side (dauth was using a deprecated logger initialization)