Skip to content

Reduce verbose logging on generic command failure #8904

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

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

agjohnson
Copy link
Contributor

@agjohnson agjohnson commented Feb 8, 2022

We updated the copy used for generic errors with the celery refactor,
but also converted a generic command failure to BuildUserError(msg).
This caused the command output to always be used as the error message
shown to the user.

More error classes is probably the direction we want to go here, perhaps
even going as far as to provide more helpful errors for each step that
commonly emits the generic user error class.

Refs #8901

We updated the copy used for generic errors with the celery refactor,
but also converted a generic command failure to `BuildUserError(msg)`.
This caused the command output to always be used as the error message
shown to the user.

More error classes is probably the direction we want to go here, perhaps
even going as far as to provide more helpful errors for each step that
commonly emits the generic user error class.
@agjohnson
Copy link
Contributor Author

Untested locally, working on that now.

@humitos humitos self-assigned this Feb 9, 2022
@humitos humitos marked this pull request as ready for review February 14, 2022 13:41
@humitos humitos requested a review from a team as a code owner February 14, 2022 13:41
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

I tested this locally and it did work as expected. So, I'm happy to merge it for tomorrow's deploy.

@humitos humitos merged commit 51b4b22 into master Feb 14, 2022
@humitos humitos deleted the agj/reduce-verbose-logging branch February 14, 2022 20:08
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