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

No service matching task id, change log level to warning. #227

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

tomez
Copy link
Collaborator

@tomez tomez commented Apr 11, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 87.427% when pulling 1f8ac80 on fix/taskid-loglevel into 96dab08 on master.

consul/consul.go Outdated
@@ -203,7 +203,8 @@ func (c *Consul) DeregisterByTask(taskID apps.TaskID) error {
if err != nil {
return err
} else if len(services) == 0 {
return fmt.Errorf("Couldn't find any service matching task id %s", taskID)
log.Warningf("Couldn't find any service matching task id %s", taskID)
Copy link
Contributor

Choose a reason for hiding this comment

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

put task ID in WithField("Id", taskID)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 87.44% when pulling 2a9b403 on fix/taskid-loglevel into 96dab08 on master.

consul/consul.go Outdated
@@ -203,7 +203,10 @@ func (c *Consul) DeregisterByTask(taskID apps.TaskID) error {
if err != nil {
return err
} else if len(services) == 0 {
return fmt.Errorf("Couldn't find any service matching task id %s", taskID)
log.WithFields(
Copy link
Contributor

Choose a reason for hiding this comment

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

it can be shortened to .WithField("Id", taskID)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 87.427% when pulling 44a1ff9 on fix/taskid-loglevel into 96dab08 on master.

@tomez tomez merged commit be2fb49 into master Apr 11, 2017
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.

5 participants