Skip to content

Add time logging method to haf_block_explorer

Michal Zander requested to merge mzander/time-logging into develop

related to: balance_tracker!32 (merged)

Old logs:

2023-09-16 09:33:49.641257 NOTICE:  Attempting to process a block range: <66580001, 66590000>
2023-09-16 09:33:49.641317 NOTICE:  Processing balances
2023-09-16 09:33:50.066862 NOTICE:  Processed data for block: 66581000
2023-09-16 09:33:50.625924 NOTICE:  Processed data for block: 66582000
2023-09-16 09:33:51.069647 NOTICE:  Processed data for block: 66583000
2023-09-16 09:33:51.527504 NOTICE:  Processed data for block: 66584000
2023-09-16 09:33:52.023151 NOTICE:  Processed data for block: 66585000
2023-09-16 09:33:52.499543 NOTICE:  Processed data for block: 66586000
2023-09-16 09:33:52.887498 NOTICE:  Processed data for block: 66587000
2023-09-16 09:33:53.416992 NOTICE:  Processed data for block: 66588000
2023-09-16 09:33:53.925301 NOTICE:  Processed data for block: 66589000
2023-09-16 09:33:54.389968 NOTICE:  Processed data for block: 66590000
2023-09-16 09:33:54.390265 NOTICE:  Processing delegations, rewards, savings, withdraws
2023-09-16 09:34:00.528297 NOTICE:  btracker_app Block range: <66580001, 66590000> processed successfully.
2023-09-16 09:34:00.541401 NOTICE:  hafbe_app Block range a: <66580001, 66590000> processed successfully.
2023-09-16 09:34:00.605804 NOTICE:  hafbe_app Block range b: <66580001, 66590000> processed successfully.
2023-09-16 09:34:02.341477 NOTICE:  hafbe_app Block range c: <66580001, 66590000> processed successfully.
2023-09-16 09:34:02.365587 NOTICE:  app_state_provider Block range: <66580001, 66590000> processed successfully.
2023-09-16 09:34:02.377699 NOTICE:  Last processed block 66590000
2023-09-16 09:34:02.377725 NOTICE:  Processed 10000 blocks in 5 seconds

new logs:

2023-09-18 14:36:37.333802 NOTICE:  Attempting to process a block range:<5780001, 5790000>
2023-09-18 14:36:38.279017 NOTICE:  btracker_app A processed successfully. 0.945 seconds
2023-09-18 14:36:38.830154 NOTICE:  btracker_app B processed successfully. 0.552 seconds
2023-09-18 14:36:38.831850 NOTICE:  hafbe_app    A processed successfully. 0.002 seconds
2023-09-18 14:36:38.849076 NOTICE:  hafbe_app    B processed successfully. 0.017 seconds
2023-09-18 14:36:39.159072 NOTICE:  hafbe_app    C processed successfully. 0.309 seconds
2023-09-18 14:36:39.160207 NOTICE:  state_provider processed successfully. 0.002 seconds
2023-09-18 14:36:39.161499 NOTICE:  Processed 10000 blocks in 1.828 seconds
2023-09-18 14:36:39.161523 NOTICE:  Block processing running for 10.03 minutes

Also dedicated view to search for specific block ranges and the times.

Edited by Michal Zander

Merge request reports

Loading