Skip to content

Change all pre-endpoint product/version failures to ProductNotFoundError#4887

Open
Discookie wants to merge 1 commit into
Ericsson:masterfrom
Discookie:missing-product
Open

Change all pre-endpoint product/version failures to ProductNotFoundError#4887
Discookie wants to merge 1 commit into
Ericsson:masterfrom
Discookie:missing-product

Conversation

@Discookie

Copy link
Copy Markdown
Contributor

This removes a couple unnecessary stack traces from the server console.

f"nonexistent product: '{product_endpoint}'."
LOG.error(error_msg)
raise ValueError(error_msg)
LOG.debug(error_msg)

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.

The exception handler prints this message to the debug log already. I think, this could be removed.

@@ -501,9 +501,9 @@ def do_POST(self):
else:
LOG.debug("This API endpoint does not exist.")

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.

The exception handler prints this message to the debug log already. I think, this could be removed.

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