Skip to content

[Build.Tasks] Use LogDebugMessage instead of LogWarning in ExtractAll()#329

Merged
jonathanpeppers merged 1 commit intomainfrom
jonathanpeppers/dev-peppers-fix-extractall-log-level
Apr 14, 2026
Merged

[Build.Tasks] Use LogDebugMessage instead of LogWarning in ExtractAll()#329
jonathanpeppers merged 1 commit intomainfrom
jonathanpeppers/dev-peppers-fix-extractall-log-level

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

The path-traversal skip message in Files.ExtractAll() (added in 9b8ef3c) used LogWarning, but this is a diagnostic/informational message that should use LogDebugMessage (MessageImportance.Low) instead.

This avoids surfacing unnecessary warnings to users during normal builds.

The path-traversal skip message in Files.ExtractAll() used LogWarning,
but this is a diagnostic/informational message that should use
LogDebugMessage (MessageImportance.Low) instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 14:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adjusts logging in Microsoft.Android.Build.Tasks.Files.ExtractAll() so that the “skipping zip entry due to extracting outside destination” message is logged as a low-importance diagnostic message rather than a build warning, reducing warning noise during normal builds.

Changes:

  • Replace LogWarning with LogDebugMessage for the path-traversal skip message in Files.ExtractAll().

Comment thread src/Microsoft.Android.Build.BaseTasks/Files.cs
@jonathanpeppers jonathanpeppers merged commit d222cfe into main Apr 14, 2026
6 checks passed
@jonathanpeppers jonathanpeppers deleted the jonathanpeppers/dev-peppers-fix-extractall-log-level branch April 14, 2026 15:33
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