Skip to content

[MS-120] Skipping non-existent privacy notice download 404 logging#1179

Merged
alex-vt merged 2 commits into
mainfrom
task/skip-privacy-notice-404-reports
May 6, 2025
Merged

[MS-120] Skipping non-existent privacy notice download 404 logging#1179
alex-vt merged 2 commits into
mainfrom
task/skip-privacy-notice-404-reports

Conversation

@alex-vt
Copy link
Copy Markdown
Contributor

@alex-vt alex-vt commented Apr 24, 2025

JIRA ticket
Will be released in: 2025.2.0

Notable changes

Not user-facing, only affects logging:

When an API call for downloading a privacy notice occurs, and returns 404 (not found) - not logging this.

companion object {
@VisibleForTesting
const val PRIVACY_NOTICE_FILE = "privacy_notice"
private const val NOT_FOUND_STATUS_CODE = 404
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.

I would suggest using the codes defined in the HTTP library to skip on re-defining them in our code base.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2025

@alex-vt alex-vt merged commit 07658b5 into main May 6, 2025
12 checks passed
@alex-vt alex-vt deleted the task/skip-privacy-notice-404-reports branch May 6, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants