"Log Clarity Revolutionized: Sync Health Contact Info Transformed"
"Software Update Ensures Contact Information is Legible, Elevating Debugging Experience for Developers!"
Commit Details:
fix: turn sync health contact info into string before logging (#2337) Contact info appears as "Object" in the logs because it isn't translated into a string prior to logging. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `syncHealthJob` by adding functionality to serialize contact information into a string format before logging, improving the clarity and usability of logs related to synchronization health. ### Detailed summary - Added import for `addressInfoFromGossip` and `addressInfoToString` from `../../utils/p2p.js`. - Introduced logic to extract `rpcAddress` from `contactInfo`. - Implemented error handling for `addressInfo` and return a string representation of the address if successful. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->