Skip to content

Commit

Permalink
fix log message for delete operation
Browse files Browse the repository at this point in the history
Signed-off-by: Di Xu <[email protected]>
  • Loading branch information
dixudx committed Dec 13, 2024
1 parent a5b2c25 commit 523d1db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yacht.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ func (c *Controller) applyEnqueueFilterFunc(oldObj, newObj interface{}, operatio
return false
}

utils.DepthLogging(nil, "info", fmt.Sprintf("[%s] enqueue resource", operation), oldObj)
if operation == cache.Deleted {
utils.DepthLogging(nil, "info", fmt.Sprintf("[%s] enqueue resource", operation), oldObj)
} else {
utils.DepthLogging(nil, "info", fmt.Sprintf("[%s] enqueue resource", operation), newObj)
}
return true
}

Expand Down

0 comments on commit 523d1db

Please sign in to comment.