pegnet / pegnetd

The pegnet daemon to track txs, conversions, etc
Other
13 stars 14 forks source link

Improved Status Reports #69

Closed WhoSoup closed 5 years ago

WhoSoup commented 5 years ago

closes: #46

Per #46, we really need better reporting. This PR does the following:

edit: fixed link to right issue

WhoSoup commented 5 years ago

Example outputs

time="2019-10-30T12:17:58+01:00" level=info msg="Listening on :8070..."
time="2019-10-30T12:17:58+01:00" level=info msg="Starting sync job of 291 blocks" height=216273 target=216564
time="2019-10-30T12:18:13+01:00" level=info msg="sync stats" avg=188.773297ms elapsed=15.1018638s height=216353 left=39.831165667s syncing-to=216564
time="2019-10-30T12:18:28+01:00" level=info msg="sync stats" avg=186.041504ms elapsed=30.1397239s height=216435 left=23.999354016s syncing-to=216564
time="2019-10-30T12:18:43+01:00" level=info msg="sync stats" avg=184.120286ms elapsed=45.2955908s height=216519 left=8.28541287s syncing-to=216564
time="2019-10-30T12:18:52+01:00" level=info msg="Finished sync job" blocks-synced=291 height=216564

and

time="2019-10-30T12:30:07+01:00" level=info msg="Listening on :8070..."
time="2019-10-30T12:30:07+01:00" level=info msg="Node is up to date" height=216565
time="2019-10-30T13:14:58+01:00" level=info msg="status report" height=216570
time="2019-10-30T14:14:59+01:00" level=info msg="status report" height=216576