Skip to content

Commit

Permalink
make sure db reset logs encapsulate change values (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 authored Feb 19, 2025
1 parent 2fa032c commit 0900566
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ee/agent/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ func DetectAndRemediateHardwareChange(ctx context.Context, k types.Knapsack) {
hardwareUUIDChanged := false
munemoChanged := false

defer k.Slogger().Log(ctx, slog.LevelDebug, "finished check to see if database should be reset...",
"serial", serialChanged,
"hardware_uuid", hardwareUUIDChanged,
"munemo", munemoChanged,
)
defer func() {
k.Slogger().Log(ctx, slog.LevelDebug, "finished check to see if database should be reset...",
"serial", serialChanged,
"hardware_uuid", hardwareUUIDChanged,
"munemo", munemoChanged,
)
}()

currentSerial, currentHardwareUUID, err := currentSerialAndHardwareUUID(ctx, k)
if err != nil {
Expand Down

0 comments on commit 0900566

Please sign in to comment.