Skip to content

Conversation

@bastienfaivre
Copy link
Collaborator

@bastienfaivre bastienfaivre commented Dec 18, 2025

Solves #121.

I replaced all println! statements with tracing logs for the testnet subcommand. @ljoss17 let me know if this is what you had in mind.

Moreover, I observe two more files where println! is used:

  • utils/src/poa.rs: 21 occurrences
  • cli/src/cmd/show_pubkey.rs: 1 occurrence (show public key command)

Should we also use tracing logs for these, too?

@bastienfaivre bastienfaivre marked this pull request as draft December 18, 2025 09:57
Copy link
Contributor

@ljoss17 ljoss17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small formatting comments for the logs

@ljoss17
Copy link
Contributor

ljoss17 commented Dec 18, 2025

Moreover, I observe two more files where println! is used:

  • utils/src/poa.rs: 21 occurrences
  • cli/src/cmd/show_pubkey.rs: 1 occurrence (show public key command)

Regarding this, yes ideally I feel like this should be migrated to tracing logs. Not necessary to do this in this PR but could be nice

@bastienfaivre bastienfaivre changed the title feat(cli): testnet subcommand uses tracing logs instead of println! feat(cli): println! to tracing logs migration Dec 18, 2025
@bastienfaivre
Copy link
Collaborator Author

@ljoss17, I fixed your comments and migrated poa.rs. show_pubkey needs to keep println as it just prints the key, it is not a log.

@bastienfaivre bastienfaivre marked this pull request as ready for review December 18, 2025 13:25
@bastienfaivre bastienfaivre requested a review from a team as a code owner December 23, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants