Skip to content

Add explicit destructive operation logging for Kill/Remove#129

Merged
praveenkumar merged 1 commit into
crc-org:masterfrom
vyasgun:pr/sec-logs
Jun 9, 2026
Merged

Add explicit destructive operation logging for Kill/Remove#129
praveenkumar merged 1 commit into
crc-org:masterfrom
vyasgun:pr/sec-logs

Conversation

@vyasgun

@vyasgun vyasgun commented Jun 8, 2026

Copy link
Copy Markdown

Adds structured success/failure logs for libvirt Kill() and Remove().

The logs show in ~/.crc/crc.log as follows (on crc delete --log-level debug):

DEBU (crc) DBG | time="2026-06-08T23:29:07+05:30" level=info msg="destructive operation succeeded" machine=crc operation=Remove

Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
@vyasgun
vyasgun requested a review from praveenkumar June 9, 2026 04:28
Comment thread pkg/libvirt/libvirt.go
_ = d.validateVMRef()
err := d.validateVMRef()
if err != nil {
operationLog("Remove", d.MachineName, err).Error("destructive operation failed")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏼

@praveenkumar
praveenkumar merged commit f835cd3 into crc-org:master Jun 9, 2026
1 check passed
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.

2 participants