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 logging in fetchCheckForService #35

Merged
merged 1 commit into from
Sep 12, 2018
Merged

Conversation

mihaitodor
Copy link

Fixes #28. CheckForService will invoke defaultCheckForService when check.Type is not set via the HealthCheck label explicitly on the service.

"Adding check for service %s (id: %s) failed. Got check type: %s, check args: %s.",
svc.Name, svc.ID, check.Type, check.Args,
)
log.Warnf("Got empty check type for service %s (id: %s)!", svc.Name, svc.ID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks to me like this got a little orphaned in the refactor at some point. But the new message should still show the args in case some were returned.

Copy link
Author

@mihaitodor mihaitodor Sep 12, 2018

Choose a reason for hiding this comment

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

Indeed, the message is a bit redundant, since we'll get this one anyway.

Is it good to merge now @relistan?

@relistan relistan merged commit d0f2fdc into master Sep 12, 2018
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