Dac/Node: display more informative logs when resolving plugin
Context
Add debugging information for protocols against the plugin is resolved against
Manually testing the MR
Tested manually against ghostnet and mondaynet
Ghostnet:
$ ./octez-dac-node --endpoint https://rpc.ghostnet.teztnets.xyz run
Jan 30 12:08:48.450 - dac.node: Starting the DAC node
Jan 30 12:08:48.451 - dac.node: The Data Availability Committee is ready
Jan 30 12:08:48.451 - dac.node: The DAC node is listening to 127.0.0.1:10832
Jan 30 12:08:48.451 - dac.node: Started tracking layer 1's node
Jan 30 12:08:49.323 - dac.node: Trying to resolve plugin for protocol PtLimaPtLMwf
Jan 30 12:08:49.325 - dac.node: Trying to resolve plugin for protocol PtLimaPtLMwf
Jan 30 12:08:49.325 - dac.node: Could not resolve plugin
$ ./octez-dac-node --endpoint https://rpc.mondaynet-2023-01-30.teztnets.xyz run
Jan 30 12:08:29.912 - dac.node: Starting the DAC node
Jan 30 12:08:29.913 - dac.node: The Data Availability Committee is ready
Jan 30 12:08:29.913 - dac.node: The DAC node is listening to 127.0.0.1:10832
Jan 30 12:08:29.913 - dac.node: Started tracking layer 1's node
Jan 30 12:08:30.756 - dac.node: Trying to resolve plugin for protocol ProtoALphaAL
Jan 30 12:08:30.756 - dac.node: Resolved plugin for protocol ProtoALphaAL
Jan 30 12:08:30.756 - dac.node: The DAC node is ready
Jan 30 12:08:30.757 - dac.node: Started tracking layer 1's node
Jan 30 12:08:31.174 - dac.node: Head of layer 1's node updated to
Jan 30 12:08:31.174 - dac.node: BMKZPg4rZUMa8c6PuhJzvKJBzuGLWLSNeRHqCbm2mPVNyYHvuFk at level 661
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR