Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use logging.info for user errors instead of logging.error #1152

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

mvandenburgh
Copy link
Member

Fixes #1151

There's a couple places where logs indicating "errors" on the part of the client are logged as ERROR level, which are then reported as a sentry error. I think ERROR-level logging should be reserved for actual programming errors or abnormal system failures, not user "errors" like validation failures that are a normal part of the system. Any thoughts @AlmightyYakob @waxlamp?

@waxlamp
Copy link
Member

waxlamp commented Jul 1, 2022

Agreed.

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

LGTM

@mvandenburgh mvandenburgh added patch Increment the patch version when merged release Create a release when this pr is merged labels Jul 1, 2022
@mvandenburgh mvandenburgh merged commit 3d54820 into master Jul 1, 2022
@mvandenburgh mvandenburgh deleted the fix-logging-errors branch July 1, 2022 20:31
@dandibot
Copy link
Member

dandibot commented Jul 1, 2022

🚀 PR was released in v0.2.29 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while validating asset 35379
4 participants