Skip to content

enhance(logging): improve cloud policy download error message#894

Open
arushiiii18 wants to merge 1 commit into
pyupio:mainfrom
arushiiii18:improve/cloud-policy-download-message
Open

enhance(logging): improve cloud policy download error message#894
arushiiii18 wants to merge 1 commit into
pyupio:mainfrom
arushiiii18:improve/cloud-policy-download-message

Conversation

@arushiiii18

Copy link
Copy Markdown

Description

Improves the user-facing and logged error messages shown when cloud policy download fails.

Previously, the code:

  • logged the exception message redundantly using LOG.exception(..., reason: {e})
  • displayed the generic message:

Not using cloud policy file.

This change:

  • removes duplicate exception information from the log output
  • provides a clearer log message indicating that the download from Safety Platform failed
  • improves the console message to explain that the scan will continue without cloud policy configuration

This helps users better understand both the failure and the fallback behavior.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Other (logging/error message improvement)

Related Issues

Related to #577

Testing

  • Tests added or updated
  • No tests required

This change only modifies log and console output and does not alter application behavior.

Checklist

  • My code follows the project's style guidelines.
  • I have reviewed my changes.
  • I have tested the change locally where applicable.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d8311e9a-cd87-4d4d-94c4-1846e766686b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant