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

Fix missing logs on save #1729

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Fix missing logs on save #1729

merged 3 commits into from
Dec 16, 2024

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Dec 16, 2024

Description

On save, we didn't log if sending details were saved, updated or deleted.

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7. Tested this with all kinds of combinations between old and new config.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

Copy link
Member

@huumn huumn left a comment

Choose a reason for hiding this comment

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

On the server side, it seems you might've forgot about device sync. At least it appears it might not have been accounted for. When we introduced that we made the logging generic.

@@ -551,7 +551,7 @@ const resolvers = {

const logger = walletLogger({ wallet, models })
await models.wallet.delete({ where: { userId: me.id, id: Number(id) } })
logger.info('wallet detached')
logger.info('details for receiving deleted')
Copy link
Member

Choose a reason for hiding this comment

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

If this wallet is using device sync, isn't it possible there were no receive creds ever saved or deleted?

@huumn huumn merged commit 6098d39 into master Dec 16, 2024
6 checks passed
@huumn huumn deleted the wallet-logs-on-save branch December 16, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants