You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make the contact info logs for the sync health job richer (#2338)
It's currently hard to tell what state the contact info is in if the rpc
address is not present. Differentiate the error states better in the
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
- [ ] 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 improving error handling and simplifying the return
values related to `contactInfo` in the `syncHealthJob.ts` file.
### Detailed summary
- Replaced returning `undefined` when `contactInfo` is missing with
returning the string `"Missing contact info"`.
- Changed the return value for `contactInfo` to directly return
`contactInfo.contactInfo`.
- Updated the error message to exclude `contactInfo` details in the
logging.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
0 commit comments