Skip to content

ksud: Decrease log level on release build#3058

Merged
aviraxp merged 11 commits into
mainfrom
aviraxp-patch-1
Dec 9, 2025
Merged

ksud: Decrease log level on release build#3058
aviraxp merged 11 commits into
mainfrom
aviraxp-patch-1

Conversation

@aviraxp

@aviraxp aviraxp commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

Add debug_select macro for conditional debugging.

Add debug_select macro for conditional debugging.
Copilot AI review requested due to automatic review settings December 9, 2025 13:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a conditional compilation macro to support different log levels between debug and release builds. The debug_select! macro allows developers to specify different values for debug and release configurations, facilitating the goal of decreasing log verbosity in production builds.

  • Adds a debug_select! macro that returns different expressions based on build configuration
  • Uses Rust's cfg(debug_assertions) to distinguish between debug and release builds
  • Exports the macro at the crate level using #[macro_export]

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

Comment thread userspace/ksud/src/utils.rs
Comment thread userspace/ksud/src/utils.rs
@aviraxp aviraxp marked this pull request as draft December 9, 2025 13:46
@aviraxp aviraxp changed the title Decrease log level on release build ksud: Decrease log level on release build Dec 9, 2025
@aviraxp aviraxp marked this pull request as ready for review December 9, 2025 13:57
@aviraxp aviraxp enabled auto-merge (squash) December 9, 2025 13:57
@aviraxp aviraxp merged commit 3079244 into main Dec 9, 2025
19 checks passed
@aviraxp aviraxp deleted the aviraxp-patch-1 branch December 9, 2025 13:57
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Dec 11, 2025
Add debug_select macro for conditional debugging.

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
selfmusing pushed a commit to selfmusing/USlenreK that referenced this pull request Dec 11, 2025
Add debug_select macro for conditional debugging.
larpedd pushed a commit to larpedd/KernelSU that referenced this pull request Dec 20, 2025
Add debug_select macro for conditional debugging.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Add debug_select macro for conditional debugging.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Add debug_select macro for conditional debugging.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
Add debug_select macro for conditional debugging.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
Add debug_select macro for conditional debugging.
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 2026
Add debug_select macro for conditional debugging.
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