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

Check errors and log them #27

Merged
merged 2 commits into from
Jan 22, 2019
Merged

Conversation

metalmatze
Copy link
Collaborator

When starting a server we should check their return values and log them.
Additionally, we should think about using something like run.Group to terminate all goroutines if one server fails.

/cc @brancz @squat @mxinden

Copy link

@mxinden mxinden 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 to me. Thanks for the quick fix!

For the future, might be worth adding errcheck.

Example including exclude file

@brancz
Copy link
Owner

brancz commented Jan 22, 2019

Lgtm and +1 and rungroup, vet, staticcheck etc.

@brancz brancz merged commit dd0f13f into brancz:master Jan 22, 2019
@metalmatze metalmatze deleted the fix-server-errors branch January 22, 2019 12:59
paulfantom pushed a commit to paulfantom/kube-rbac-proxy that referenced this pull request Sep 1, 2020
…cp-baseimages-to-mach-ocp-build-data-config

Bug 1872080: Updating Dockerfile.ocp baseimages to mach ocp-build-data config
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

3 participants