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

fix: render (log) errors #4439

Merged
merged 4 commits into from May 31, 2023
Merged

fix: render (log) errors #4439

merged 4 commits into from May 31, 2023

Conversation

Orzelius
Copy link
Contributor

@Orzelius Orzelius commented May 25, 2023

See commits for details.

A bunch of test assertions might fail, will need to fix separately if so.

This also completes this https://github.com/orgs/garden-io/projects/5/views/1?pane=issue&itemId=28914020 <- was erroring out just as expected, it's just that the error was not shown.

@Orzelius Orzelius marked this pull request as ready for review May 25, 2023 12:29
@Orzelius Orzelius requested review from thsig, eysi09 and a team May 25, 2023 12:29
if just the error was passed to the log entry it was not logged
previously. This might have swallowed up quite a few errors in the past.

Most of the time the error is formated into the `msg` on the log entry
so I added logic that checks whether the entry already includes the
the error and if so doesn't duplicate it.
The error detail is written to the error log file as it proved to be
too noisy. That's why the error renderer was removed from the renderers
in the first place.
Co-authored-by: Vladimir Vagaytsev <vladimir.vagaitsev@gmail.com>
Copy link
Contributor

@shumailxyz shumailxyz left a comment

Choose a reason for hiding this comment

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

Looks good, thank you 👍

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

👍

@Orzelius Orzelius merged commit 4fe827f into main May 31, 2023
32 of 38 checks passed
@Orzelius Orzelius deleted the dev-errors branch May 31, 2023 08:43
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.

None yet

4 participants