Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging-aftermarketDevicePaired #310

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

Allyson-English
Copy link
Member

when compiling vehicles to be burned, there were a few that were not associated with a user device id but were paired on chain. seems like the event was never fully processed. adding these logs so that if this happens in the future we can more easily triangulate where the problem is occurring


am, err := models.AftermarketDevices(
models.AftermarketDeviceWhere.TokenID.EQ(utils.BigToDecimal(args.AftermarketDeviceNode)),
).One(context.TODO(), c.db.DBS().Reader)
if err != nil {
log.Err(err).Msg("failed to retrieve aftermarket device")
return err
Copy link
Member

Choose a reason for hiding this comment

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

Could return a wrapped error here. That'll get logged.

@Allyson-English Allyson-English merged commit 1a587a8 into main Apr 18, 2024
2 checks passed
@Allyson-English Allyson-English deleted the logging-aftermarketDevicePaired branch April 18, 2024 20:12
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