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

alerting: also log to logger #1466

Merged
merged 1 commit into from
Mar 11, 2024
Merged

alerting: also log to logger #1466

merged 1 commit into from
Mar 11, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Mar 11, 2024

Might be preferable to have these error receiving functions return that error, allowing a natural

return alerter.LogFlowError(ctx, flowName, fmt.Errorf("...: %w", err))

Instead of logging inner err & only returning the fmt.Errorf error. Which would also help recover some logging this PR removes while deduplicating logging error & alerter.LogFlowError

@serprex serprex force-pushed the alerter-log-should-log branch from ddce4a4 to 796786e Compare March 11, 2024 13:17
@serprex serprex merged commit 921b157 into main Mar 11, 2024
7 checks passed
@serprex serprex deleted the alerter-log-should-log branch March 11, 2024 13:25
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