Skip to content

Conversation

Demolus13
Copy link
Member

@Demolus13 Demolus13 commented Oct 9, 2025

Summary

This PR enhances console logging by creating an Error Logs Panel which can let the user know if any error has occured while running the commands. It also refactors some redundant logger.error to logger.debug`. Reversing the order in which passed and failed policies are displayed in console output such that passed components are at the top.

The Rich Handler looks at the log level and determines if it is an error or critical log and stores them in a list which is then show in the Error Logs Panel if there are any errors.

Description of changes

  • Refactored logging: Replaced many logger.error calls with logger.debug where appropriate, making logs more informative for debugging.
  • Console improvements: Enhanced the live console display to include a error log panel, and improved layout for command outputs.
  • Refined the display of policy verification results, making it easier to distinguish between components that satisfy or violate policies.
  • Show the Decode and Inspect command if VSA is generated while running macaron verify-policy command

Related issues

N/A

Checklist

  • I have reviewed the contribution guide.
  • My PR title and commits follow the Conventional Commits convention.
  • My commits include the "Signed-off-by" line.
  • I have signed my commits following the instructions provided by GitHub. Note that we run GitHub's commit verification tool to check the commit signatures. A green verified label should appear next to all of your commits on GitHub.
  • I have updated the relevant documentation, if applicable.
  • I have tested my changes and verified they work as expected.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 9, 2025
@Demolus13 Demolus13 self-assigned this Oct 9, 2025
@behnazh-w behnazh-w changed the title refactor: improve docs and console logging chore: improve docs and console logging Oct 9, 2025
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
Signed-off-by: Demolus13 <parth.govale@oracle.com>
@Demolus13 Demolus13 force-pushed the pgovale/ui-enhancements branch from 8003713 to 87760d4 Compare October 10, 2025 04:47
@Demolus13 Demolus13 marked this pull request as ready for review October 10, 2025 06:08
@behnazh-w behnazh-w merged commit b0c46fa into oracle:main Oct 10, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants