Skip to content

refactor: improve logs and add exception stack trace for YarnAuditAnalyzer#7694

Merged
jeremylong merged 2 commits into
mainfrom
7692-improve-logs-and-add-exception
May 31, 2025
Merged

refactor: improve logs and add exception stack trace for YarnAuditAnalyzer#7694
jeremylong merged 2 commits into
mainfrom
7692-improve-logs-and-add-exception

Conversation

@nhumblot

Copy link
Copy Markdown
Collaborator

Description of Change

The purpose of this PR is to change 2 identical log messages to help understand what actually happened when an issue is encountered by a user. DependencyCheck will now display the exit value when receiving a non-zero exit value from Yarn. In case an InitializationException is encountered when initializing the YarnAuditAnalyzer, NodeAuditAnalyzer, NodePackageAnalyzer or the PnpmAuditAnalyzer, this exception stack trace will be printed at debug level.

Related issues

Have test cases been added to cover the new functionality?

no

@boring-cyborg boring-cyborg Bot added the core changes to core label May 30, 2025
@nhumblot nhumblot marked this pull request as ready for review May 30, 2025 10:15

@jeremylong jeremylong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@jeremylong jeremylong added this to the 12.1.2 milestone May 31, 2025
@jeremylong jeremylong merged commit 991397c into main May 31, 2025
5 checks passed
@jeremylong jeremylong deleted the 7692-improve-logs-and-add-exception branch May 31, 2025 15:51
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants