Skip to content

#423 remove unneeded log messages#435

Merged
Antynea merged 2 commits into
masterfrom
423-remove-unneeded-log-messages
May 30, 2026
Merged

#423 remove unneeded log messages#435
Antynea merged 2 commits into
masterfrom
423-remove-unneeded-log-messages

Conversation

@Antynea

@Antynea Antynea commented May 30, 2026

Copy link
Copy Markdown
Owner

Fix #423

Copilot AI review requested due to automatic review settings May 30, 2026 13:38
@Antynea Antynea changed the title 423 remove unneeded log messages #423 remove unneeded log messages May 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Reduces alarming "error" log noise for expected no-op exit conditions in 41_snapshots-btrfs. Introduces print_info/print_warning helpers and reclassifies four benign early-exit paths (disabled config, missing btrfs-progs, non-btrfs root, no snapshots found) from print_error (which prints a bug-report URL) to informational messages, while keeping a clean exit 0.

Changes:

  • Add print_info and print_warning logging helpers, all prefixed with grub-btrfs: and written to stderr.
  • Update print_error to use the grub-btrfs: Error: prefix.
  • Reclassify benign exit conditions (GRUB_BTRFS_DISABLE, missing btrfs, non-btrfs root, no snapshots found) from print_error to print_info + explicit exit 0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Antynea Antynea merged commit aea2b0a into master May 30, 2026
2 checks passed
@Antynea Antynea deleted the 423-remove-unneeded-log-messages branch May 30, 2026 13:46
Antynea added a commit that referenced this pull request May 30, 2026
The "Detecting snapshots ..." message was still a bare printf and bypassed the logging helpers added in #435.
Use print_info so it carries the "grub-btrfs:" prefix; 
the trailing newline is handled by the helper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants