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

make sure db reset logs encapsulate change values #2111

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

zackattack01
Copy link
Contributor

I noticed in a flare recently that we had logged a change to serial and hardware uuid values, but then immediately logged "finished check to see if database should be reset..." without any of those changed values being reflected.

This was just because the deferred log was done outside of an anonymous function, causing all values to be evaluated when the defer was processed instead of during its execution later. This wraps the call in a func to ensure those values reflect any updates at the time of logging

@zackattack01 zackattack01 added the bug-fixes Bug Fixes label Feb 19, 2025
Copy link
Contributor

@RebeccaMahany RebeccaMahany left a comment

Choose a reason for hiding this comment

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

💯 nice catch

@zackattack01 zackattack01 added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit 0900566 Feb 19, 2025
33 checks passed
@zackattack01 zackattack01 deleted the zack/db_reset_logging branch February 19, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fixes Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants