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

Shorten Jira error messages #214

Merged
merged 5 commits into from
May 12, 2022
Merged

Shorten Jira error messages #214

merged 5 commits into from
May 12, 2022

Conversation

dericksonmark
Copy link
Member

Purpose

Fixes #212.

Approach

This changes the error message in Task.ts, FilterFeedTask.ts, and VersionFeedTask.ts to be only four lines long. These four lines include the status code, status text, and error messages (some of these may not be defined).

These error messages used to be over 300 lines each.

The changes here don't affect other Jira error messages besides these three, but these are the errors that are causing the most spam when the bot can't connect to Jira.

Here is an example of a shortened error message.

Screen Shot 2021-06-01 at 11 35 53 PM

@dericksonmark dericksonmark marked this pull request as draft June 9, 2021 15:38
Copy link
Member

@violine1101 violine1101 left a comment

Choose a reason for hiding this comment

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

It might be better to extract this into a common util function that stringifies a JIRA error, otherwise we have duplicated code here which is not good.

@dericksonmark
Copy link
Member Author

I think I've added a LoggerUtil properly, so I'll mark this pull request as ready for review.

@dericksonmark dericksonmark marked this pull request as ready for review August 12, 2021 03:21
src/util/LoggerUtil.ts Outdated Show resolved Hide resolved
@violine1101 violine1101 force-pushed the smaller-jira-errors branch from 010734b to 4db4a36 Compare May 12, 2022 16:59
@violine1101 violine1101 merged commit d8ce393 into master May 12, 2022
@violine1101 violine1101 deleted the smaller-jira-errors branch May 12, 2022 17:09
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.

Improve error logging for jira connection errors
3 participants